skia2/bench/BenchSysTimer_posix.h

20 lines
267 B
C
Raw Normal View History

#ifndef SkBenchSysTimer_DEFINED
#define SkBenchSysTimer_DEFINED
//Time
#include <time.h>
class BenchSysTimer {
public:
void startWall();
void startCpu();
double endCpu();
double endWall();
private:
timespec fCpu;
timespec fWall;
};
#endif