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

Method Stop

src/statTimer/statisticalTimer.CPU.cpp:205–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void
206CpuStatTimer::Stop( size_t id )
207{
208 cl_ulong n;
209
210#if defined( _WIN32 )
211 ::QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER*>( &n ) );
212#else
213 struct timeval s;
214 gettimeofday( &s, 0 );
215 n = (cl_ulong)s.tv_sec * 1000000 + (cl_ulong)s.tv_usec;
216#endif
217
218 n -= clkStart.at( id );
219 clkStart.at( id ) = 0;
220 AddSample( id, n );
221}
222
223void
224CpuStatTimer::AddSample( const size_t id, const cl_ulong n )

Callers 1

transformFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected