| 184 | } |
| 185 | |
| 186 | void |
| 187 | CpuStatTimer::Start( size_t id ) |
| 188 | { |
| 189 | #if defined( _WIN32 ) |
| 190 | ::QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER*>( &clkStart.at( id ) ) ); |
| 191 | #else |
| 192 | if( clkFrequency ) |
| 193 | { |
| 194 | struct timeval s; |
| 195 | gettimeofday( &s, 0 ); |
| 196 | clkStart.at( id ) = (cl_ulong)s.tv_sec * 1000000 + (cl_ulong)s.tv_usec; |
| 197 | } |
| 198 | else |
| 199 | { |
| 200 | |
| 201 | } |
| 202 | #endif |
| 203 | } |
| 204 | |
| 205 | void |
| 206 | CpuStatTimer::Stop( size_t id ) |
nothing calls this directly
no outgoing calls
no test coverage detected