Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: tools/timer/Timer.h

Issue 788243008: Sketch DM refactor. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: better failure messages, disable a few things temporarily to try to go green Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/flags/SkCommonFlags.cpp ('k') | tools/timer/Timer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tools/flags/SkCommonFlags.cpp ('k') | tools/timer/Timer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698