blob: 62a94451341028c01c06e4838640c7e76e8fc4fe [file] [log] [blame]
epoger@google.comec3ed6a2011-07-28 14:26:00 +00001/*
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 */
mtklein9ac68ee2014-06-20 11:29:20 -07007#ifndef SysTimer_DEFINED
8#define SysTimer_DEFINED
bungeman@google.combe9ad4e2011-06-07 19:16:02 +00009
10//Time
11#define WIN32_LEAN_AND_MEAN 1
bungeman@google.com0d9e3da2013-12-03 15:23:37 +000012#include <windows.h>
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000013
mtklein9ac68ee2014-06-20 11:29:20 -070014class SysTimer {
bungeman@google.combe9ad4e2011-06-07 19:16:02 +000015public:
16 void startWall();
17 void startCpu();
18 double endCpu();
19 double endWall();
20private:
21 ULONGLONG fStartCpu;
22 LARGE_INTEGER fStartWall;
23};
24
25#endif