| 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" | 
|  11  |  12  | 
|  12 #if defined(SK_BUILD_FOR_WIN32) |  13 #if defined(SK_BUILD_FOR_WIN32) | 
|  13     #include "SysTimer_windows.h" |  14     #include "SysTimer_windows.h" | 
|  14 #elif defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) |  15 #elif defined(SK_BUILD_FOR_MAC) || defined(SK_BUILD_FOR_IOS) | 
|  15     #include "SysTimer_mach.h" |  16     #include "SysTimer_mach.h" | 
|  16 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) |  17 #elif defined(SK_BUILD_FOR_UNIX) || defined(SK_BUILD_FOR_ANDROID) | 
|  17     #include "SysTimer_posix.h" |  18     #include "SysTimer_posix.h" | 
|  18 #endif |  19 #endif | 
|  19  |  20  | 
|  20 #if SK_SUPPORT_GPU |  21 #if SK_SUPPORT_GPU | 
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  63  |  64  | 
|  64     void start(); |  65     void start(); | 
|  65     void end(); |  66     void end(); | 
|  66  |  67  | 
|  67     double fWall;  // Milliseconds. |  68     double fWall;  // Milliseconds. | 
|  68  |  69  | 
|  69 private: |  70 private: | 
|  70     SysTimer fSysTimer; |  71     SysTimer fSysTimer; | 
|  71 }; |  72 }; | 
|  72  |  73  | 
 |  74 SkString HumanizeMs(double); | 
 |  75  | 
|  73 #endif |  76 #endif | 
| OLD | NEW |