MCPcopy Create free account
hub / github.com/NVIDIA/cuda-samples / sdkGetAverageTimerValue

Function sdkGetAverageTimerValue

Common/helper_timer.h:441–449  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Return the average time for timer execution as the total time for the timer dividied by the number of completed (stopped) runs the timer has made. Excludes the current running time if the timer is currently running. @param name name of the timer to return the time of ///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

439//! @param name name of the timer to return the time of
440////////////////////////////////////////////////////////////////////////////////
441inline float sdkGetAverageTimerValue(StopWatchInterface **timer_interface) {
442 // printf("sdkGetAverageTimerValue called object %08x\n", (void
443 // *)*timer_interface);
444 if (*timer_interface) {
445 return (*timer_interface)->getAverageTime();
446 } else {
447 return 0.0f;
448 }
449}
450
451////////////////////////////////////////////////////////////////////////////////
452//! Total execution time for the timer over all runs since the last reset

Callers 15

computeFPSFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
computeFPSFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
computeFPSFunction · 0.85
operator()Method · 0.85
computeFPSFunction · 0.85
shmooFunction · 0.85
runTestFunction · 0.85
displayFunction · 0.85

Calls 1

getAverageTimeMethod · 0.80

Tested by 5

operator()Method · 0.68
operator()Method · 0.68
operator()Method · 0.68
operator()Method · 0.68
operator()Method · 0.68