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

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

Issue 1204153002: Add samplingTime mode to nanobench (Closed) Base URL: https://skia.googlesource.com/skia.git@upload_loopSKP
Patch Set: rebase Created 5 years, 6 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
« bench/nanobench.cpp ('K') | « tools/timer/SysTimer_windows.cpp ('k') | no next file » | 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"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« bench/nanobench.cpp ('K') | « tools/timer/SysTimer_windows.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698