OLD | NEW |
---|---|
(Empty) | |
1 /* | |
2 * Copyright 2011 Google Inc. | |
3 * | |
4 * Use of this source code is governed by a BSD-style license that can be | |
5 * found in the LICENSE file. | |
6 */ | |
7 #ifndef SysTimer_DEFINED | |
8 #define SysTimer_DEFINED | |
9 | |
10 #include <time.h> | |
11 | |
12 class SysTimer { | |
13 public: | |
14 void startWall(); | |
15 void startCpu(); | |
16 double endCpu(); | |
17 double endWall(); | |
18 private: | |
19 timespec fCpu; | |
20 timespec fWall; | |
21 }; | |
22 | |
23 #endif | |
OLD | NEW |