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

Method Start

src/benchmarks/cusparse-bench/src/statisticalTimer.cpp:144–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144void
145StatisticalTimer::Start( sTimerID id )
146{
147#if defined( _WIN32 )
148 ::QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER*>( &clkStart.at( id ) ) );
149#else
150 struct timeval s;
151 gettimeofday(&s, 0);
152 clkStart.at( id ) = (unsigned long long)s.tv_sec * 1000000 + (unsigned long long)s.tv_usec;
153#endif
154}
155
156void
157StatisticalTimer::Stop( sTimerID id )

Callers 7

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