11 #ifndef BOGUS_TIMER_HPP 
   12 #define BOGUS_TIMER_HPP 
   29         LARGE_INTEGER proc_freq;
 
   30         ::QueryPerformanceFrequency(&proc_freq) ;
 
   31         m_freq = proc_freq.QuadPart ;
 
   41         ::QueryPerformanceCounter(&stop);
 
   42         return (( stop.QuadPart - m_start.QuadPart) / m_frequency);
 
   45         gettimeofday( &stop, 0 ) ;
 
   46         return stop.tv_sec - m_start.tv_sec
 
   47                 + 1.e-6 * ( stop.tv_usec - m_start.tv_usec ) ;
 
   55         ::QueryPerformanceCounter(&m_start);
 
   57         gettimeofday( &m_start, 0 ) ;
 
   65     LARGE_INTEGER m_start;
 
   67     struct timeval m_start ;
 
void reset()
Restarts the timer. 
Definition: Timer.hpp:52
double elapsed()
Resturns the elapsed time, in seconds, since the last call to reset() 
Definition: Timer.hpp:37
Simple timer class. Starts when constructed. 
Definition: Timer.hpp:24