#ifndef SYSTEM_THREADING_TIMER_HPP #define SYSTEM_THREADING_TIMER_HPP #ifdef WIN32 #include #else #include #endif class Timer { private: #ifdef WIN32 LARGE_INTEGER ticksPerSecond, tick1, tick2; DWORD temps; #else struct timeval sTime; #endif bool isStarted_; public: Timer(); static unsigned long getTickCount(); bool isStarted(); void initTimer(); unsigned long getMilliSec(); unsigned long getMicroSec(); }; #endif