aboutsummaryrefslogtreecommitdiffstats
path: root/bench/BenchSysTimer_posix.h
diff options
context:
space:
mode:
Diffstat (limited to 'bench/BenchSysTimer_posix.h')
-rw-r--r--bench/BenchSysTimer_posix.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/bench/BenchSysTimer_posix.h b/bench/BenchSysTimer_posix.h
new file mode 100644
index 0000000..09dfb0e
--- /dev/null
+++ b/bench/BenchSysTimer_posix.h
@@ -0,0 +1,19 @@
+#ifndef SkBenchSysTimer_DEFINED
+#define SkBenchSysTimer_DEFINED
+
+//Time
+#include <time.h>
+
+class BenchSysTimer {
+public:
+ void startWall();
+ void startCpu();
+ double endCpu();
+ double endWall();
+private:
+ timespec fCpu;
+ timespec fWall;
+};
+
+#endif
+