epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
bungeman@google.com | be9ad4e | 2011-06-07 19:16:02 +0000 | [diff] [blame] | 8 | #ifndef SkBenchSysTimer_DEFINED |
| 9 | #define SkBenchSysTimer_DEFINED |
| 10 | |
| 11 | //Time |
| 12 | #include <time.h> |
| 13 | |
| 14 | class BenchSysTimer { |
| 15 | public: |
| 16 | void startWall(); |
| 17 | void startCpu(); |
| 18 | double endCpu(); |
| 19 | double endWall(); |
| 20 | private: |
| 21 | timespec fCpu; |
| 22 | timespec fWall; |
| 23 | }; |
| 24 | |
| 25 | #endif |