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