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

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

Issue 394363003: Use __rdtsc on Windows. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 5 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/Stats.h ('k') | tools/timer/SysTimer_windows.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 SysTimer_DEFINED 7 #ifndef SysTimer_DEFINED
8 #define SysTimer_DEFINED 8 #define SysTimer_DEFINED
9 9
10 //Time 10 //Time
11 #define WIN32_LEAN_AND_MEAN 1 11 #define WIN32_LEAN_AND_MEAN 1
12 #include <windows.h> 12 #include <windows.h>
13 13
14 class SysTimer { 14 class SysTimer {
15 public: 15 public:
16 void startWall(); 16 void startWall();
17 void startCpu(); 17 void startCpu();
18 double endCpu(); 18 double endCpu();
19 double endWall(); 19 double endWall();
20 private: 20 private:
21 ULONGLONG fStartCpu; 21 ULONGLONG fStartCpu;
22 LARGE_INTEGER fStartWall; 22 unsigned __int64 fStartWall;
23 }; 23 };
24 24
25 #endif 25 #endif
OLDNEW
« no previous file with comments | « tools/Stats.h ('k') | tools/timer/SysTimer_windows.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698