| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * 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 |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 #ifndef Timer_DEFINED | 7 #ifndef Timer_DEFINED |
| 8 #define Timer_DEFINED | 8 #define Timer_DEFINED |
| 9 | 9 |
| 10 #include "SkTypes.h" | 10 #include "SkTypes.h" |
| 11 #include "SkString.h" | |
| 12 | 11 |
| 13 #if defined(SK_BUILD_FOR_WIN32) | 12 #if defined(SK_BUILD_FOR_WIN32) |
| 14 #include "SysTimer_windows.h" | 13 #include "SysTimer_windows.h" |
| 15 #elif defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) | 14 #elif defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |
| 16 #include "SysTimer_mach.h" | 15 #include "SysTimer_mach.h" |
| 17 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) | 16 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) |
| 18 #include "SysTimer_posix.h" | 17 #include "SysTimer_posix.h" |
| 19 #endif | 18 #endif |
| 20 | 19 |
| 21 #if SK_SUPPORT_GPU | 20 #if SK_SUPPORT_GPU |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 63 |
| 65 void start(); | 64 void start(); |
| 66 void end(); | 65 void end(); |
| 67 | 66 |
| 68 double fWall; // Milliseconds. | 67 double fWall; // Milliseconds. |
| 69 | 68 |
| 70 private: | 69 private: |
| 71 SysTimer fSysTimer; | 70 SysTimer fSysTimer; |
| 72 }; | 71 }; |
| 73 | 72 |
| 74 SkString HumanizeMs(double); | |
| 75 | |
| 76 #endif | 73 #endif |
| OLD | NEW |