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" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void end(); | 66 void end(); |
67 | 67 |
68 double fWall; // Milliseconds. | 68 double fWall; // Milliseconds. |
69 | 69 |
70 private: | 70 private: |
71 SysTimer fSysTimer; | 71 SysTimer fSysTimer; |
72 }; | 72 }; |
73 | 73 |
74 SkString HumanizeMs(double); | 74 SkString HumanizeMs(double); |
75 | 75 |
| 76 // Returns the amount of time that has elapsed since an unspecified reference |
| 77 // time. The reference will be at least as recent as the process launch time. |
| 78 double GetTimeMs(); |
| 79 |
76 #endif | 80 #endif |
OLD | NEW |