blob: 469332e4ed09e1b2a7015fa772e25830cfcbbbdd [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001
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 */
bungeman@google.combe9ad4e2011-06-07 19:16:02 +00008#ifndef SkBenchSysTimer_DEFINED
9#define SkBenchSysTimer_DEFINED
10
11//Time
12#define WIN32_LEAN_AND_MEAN 1
bungeman@google.com0d9e3da2013-12-03 15:23:37 +000013#include <windows.h>
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000014
bungeman@google.coma38c8192011-10-03 20:44:39 +000015class BenchSysTimer {
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000016public:
17 void startWall();
18 void startCpu();
19 double endCpu();
20 double endWall();
21private:
22 ULONGLONG fStartCpu;
23 LARGE_INTEGER fStartWall;
24};
25
26#endif