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

Method Stop

src/benchmarks/clsparse-bench/src/statisticalTimer.cpp:156–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

154}
155
156void
157StatisticalTimer::Stop( sTimerID id )
158{
159 unsigned long long n;
160
161#if defined( _WIN32 )
162 ::QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER*>( &n ) );
163#else
164 struct timeval s;
165 gettimeofday(&s, 0);
166 n = (unsigned long long)s.tv_sec * 1000000 + (unsigned long long)s.tv_usec;
167#endif
168
169 n -= clkStart.at( id );
170 clkStart.at( id ) = 0;
171 AddSample( id, n );
172}
173
174void
175StatisticalTimer::AddSample( const sTimerID id, const unsigned long long n )

Callers 9

call_funcMethod · 0.45
call_funcMethod · 0.45
call_funcMethod · 0.45
call_funcMethod · 0.45
call_funcMethod · 0.45
call_funcMethod · 0.45
call_funcMethod · 0.45
call_funcMethod · 0.45
call_funcMethod · 0.45

Calls 1

atMethod · 0.80

Tested by

no test coverage detected