| 142 | } |
| 143 | |
| 144 | void |
| 145 | StatisticalTimer::Start( sTimerID id ) |
| 146 | { |
| 147 | #if defined( _WIN32 ) |
| 148 | ::QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER*>( &clkStart.at( id ) ) ); |
| 149 | #else |
| 150 | struct timeval s; |
| 151 | gettimeofday(&s, 0); |
| 152 | clkStart.at( id ) = (unsigned long long)s.tv_sec * 1000000 + (unsigned long long)s.tv_usec; |
| 153 | #endif |
| 154 | } |
| 155 | |
| 156 | void |
| 157 | StatisticalTimer::Stop( sTimerID id ) |