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

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

Issue 344213003: Move BenchTimer to tools as Timer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fixes Created 6 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
OLDNEW
1
2 /* 1 /*
3 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 #ifndef SkBenchSysTimer_DEFINED 7 #ifndef SysTimer_DEFINED
9 #define SkBenchSysTimer_DEFINED 8 #define SysTimer_DEFINED
10 9
11 //Time
12 #include <time.h> 10 #include <time.h>
13 11
14 class BenchSysTimer { 12 class SysTimer {
15 public: 13 public:
16 void startWall(); 14 void startWall();
17 void startCpu(); 15 void startCpu();
18 double endCpu(); 16 double endCpu();
19 double endWall(); 17 double endWall();
20 private: 18 private:
21 timespec fCpu; 19 timespec fCpu;
22 timespec fWall; 20 timespec fWall;
23 }; 21 };
24 22
25 #endif 23 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698