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

Method getMinimumTime

src/client/statisticalTimer.cpp:250–264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250double
251StatisticalTimer::getMinimumTime( sTimerID id ) const
252{
253 clkVector::const_iterator iter = std::min_element( clkTicks.at( id ).begin( ), clkTicks.at( id ).end( ) );
254
255 if( iter != clkTicks.at( id ).end( ) )
256 {
257 if( normalize )
258 return static_cast<double>( *iter ) / clkFrequency;
259 else
260 return static_cast<double>( *iter );
261 }
262 else
263 return 0;
264}
265
266unsigned int
267StatisticalTimer::pruneOutliers( sTimerID id , double multiple )

Callers 1

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected