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 12class SysTimer { 13public: 14 void startWall(); 15 void startCpu(); 16 double endCpu(); 17 double endWall(); 18private: 19 timespec fCpu; 20 timespec fWall; 21}; 22 23#endif 24