MCPcopy Create free account
hub / github.com/clMathLibraries/clFFT / Start

Method Start

src/statTimer/statisticalTimer.CPU.cpp:186–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void
187CpuStatTimer::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
205void
206CpuStatTimer::Stop( size_t id )

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected