aboutsummaryrefslogtreecommitdiffhomepage
path: root/bench/BenchSysTimer_windows.h
blob: 72a3fb2e79d4000ee3a47531d96769721f938110 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef SkBenchSysTimer_DEFINED
#define SkBenchSysTimer_DEFINED

//Time
#define WIN32_LEAN_AND_MEAN 1
#include <Windows.h>

struct BenchSysTimer {
public:
    void startWall();
    void startCpu();
    double endCpu();
    double endWall();
private:
    ULONGLONG fStartCpu;
    LARGE_INTEGER fStartWall;
};

#endif