Added second "truncated" cpu/wall timer to bench
http://codereview.appspot.com/6476064/
This CL will increase the bench baselines across the board
git-svn-id: http://skia.googlecode.com/svn/trunk@5305 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/bench/BenchTimer.h b/bench/BenchTimer.h
index 70675ad..58773d4 100644
--- a/bench/BenchTimer.h
+++ b/bench/BenchTimer.h
@@ -18,8 +18,12 @@
/**
* SysTimers and GpuTimers are implemented orthogonally.
- * This class combines a SysTimer and a GpuTimer into one single,
- * platform specific, Timer with a simple interface.
+ * This class combines 2 SysTimers and a GpuTimer into one single,
+ * platform specific Timer with a simple interface. The truncated
+ * timer doesn't include the time required for the GPU to finish
+ * its rendering. It should always be <= the un-truncated system
+ * times and (for GPU configurations) can be used to roughly (very
+ * roughly) gauge the GPU load/backlog.
*/
class BenchTimer {
public:
@@ -27,12 +31,16 @@
~BenchTimer();
void start();
void end();
+ void truncatedEnd();
double fCpu;
double fWall;
+ double fTruncatedCpu;
+ double fTruncatedWall;
double fGpu;
private:
BenchSysTimer *fSysTimer;
+ BenchSysTimer *fTruncatedSysTimer;
#if SK_SUPPORT_GPU
BenchGpuTimer *fGpuTimer;
#endif