OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 #ifndef SkBenchSysTimer_DEFINED | 7 #ifndef SysTimer_DEFINED |
9 #define SkBenchSysTimer_DEFINED | 8 #define SysTimer_DEFINED |
10 | 9 |
11 //Time | 10 //Time |
12 #define WIN32_LEAN_AND_MEAN 1 | 11 #define WIN32_LEAN_AND_MEAN 1 |
13 #include <windows.h> | 12 #include <windows.h> |
14 | 13 |
15 class BenchSysTimer { | 14 class SysTimer { |
16 public: | 15 public: |
17 void startWall(); | 16 void startWall(); |
18 void startCpu(); | 17 void startCpu(); |
19 double endCpu(); | 18 double endCpu(); |
20 double endWall(); | 19 double endWall(); |
21 private: | 20 private: |
22 ULONGLONG fStartCpu; | 21 ULONGLONG fStartCpu; |
23 LARGE_INTEGER fStartWall; | 22 LARGE_INTEGER fStartWall; |
24 }; | 23 }; |
25 | 24 |
26 #endif | 25 #endif |
OLD | NEW |