blob: eae82d5f299346b5d171b66157f60a678b600dc5 [file] [log] [blame]
bungeman@google.combe9ad4e2011-06-07 19:16:02 +00001#ifndef SkBenchTimer_DEFINED
2#define SkBenchTimer_DEFINED
3
4class BenchSysTimer;
5class BenchGpuTimer;
6
7/**
8 * SysTimers and GpuTimers are implemented orthogonally.
9 * This class combines a SysTimer and a GpuTimer into one single,
10 * platform specific, Timer with a simple interface.
11 */
12class BenchTimer {
13public:
14 BenchTimer();
15 ~BenchTimer();
16 void start();
17 void end();
18 double fCpu;
19 double fWall;
20 double fGpu;
21
22private:
23 BenchSysTimer *fSysTimer;
24 BenchGpuTimer *fGpuTimer;
25};
26
27#endif