#include "types.h" class Timer { public: Timer(); ~Timer(); void start(); void stop(); double seconds() {return m_dbSeconds;} private: #ifdef WIN32 LARGE_INTEGER m_start; LARGE_INTEGER m_end; LARGE_INTEGER m_freq; #elif defined LINUX struct timespec m_start; struct timespec m_end; #endif double m_dbSeconds; };