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

Method Stop

src/client/statisticalTimer.cpp:153–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 15

call_funcMethod · 0.80
call_funcMethod · 0.80
call_funcMethod · 0.80
call_funcMethod · 0.80
call_gemmMethod · 0.80
call_gemmMethod · 0.80
call_gemmMethod · 0.80
call_gemmMethod · 0.80
call_funcMethod · 0.80
roundtrip_funcMethod · 0.80
call_funcMethod · 0.80
call_funcMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected