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

Method Start

src/clsparseTimer/clsparseTimer-host.cpp:187–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void
188clsparseHostTimer::Start( size_t id )
189{
190#if defined( _WIN32 )
191 ::QueryPerformanceCounter( reinterpret_cast<LARGE_INTEGER*>( &clkStart.at( id ) ) );
192#else
193 if( clkFrequency )
194 {
195 struct timeval s;
196 gettimeofday( &s, 0 );
197 clkStart.at( id ) = (cl_ulong)s.tv_sec * 1000000 + (cl_ulong)s.tv_usec;
198 }
199 else
200 {
201
202 }
203#endif
204}
205
206void
207clsparseHostTimer::Stop( size_t id )

Callers

nothing calls this directly

Calls 1

atMethod · 0.80

Tested by

no test coverage detected