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

Side by Side Diff: bench/BenchSysTimer_c.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
(Empty)
1
2 /*
3 * Copyright 2011 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8 #ifndef SkBenchSysTimer_DEFINED
9 #define SkBenchSysTimer_DEFINED
10
11 //Time
12 #include <time.h>
13
14 // Beware: this timer uses standard (as opposed to high precision) clocks
15 class BenchSysTimer {
16 public:
17 void startWall();
18 void startCpu();
19 double endCpu();
20 double endWall();
21 private:
22 clock_t start_cpu;
23 time_t fStartWall;
24 };
25
26 #endif
OLDNEW
« no previous file with comments | « bench/BenchGpuTimer_gl.cpp ('k') | bench/BenchSysTimer_c.cpp » ('j') | tools/timer/GpuTimer.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698