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

Function sdkGetTimerValue

Common/helper_timer.h:456–463  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Total execution time for the timer over all runs since the last reset or timer creation. @param name name of the timer to obtain the value of. ///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

454//! @param name name of the timer to obtain the value of.
455////////////////////////////////////////////////////////////////////////////////
456inline float sdkGetTimerValue(StopWatchInterface **timer_interface) {
457 // printf("sdkGetTimerValue called object %08x\n", (void *)*timer_interface);
458 if (*timer_interface) {
459 return (*timer_interface)->getTime();
460 } else {
461 return 0.0f;
462 }
463}
464
465#endif // COMMON_HELPER_TIMER_H_

Callers 15

mainFunction · 0.85
runBenchmarkFunction · 0.85
displayFuncFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
runAutoTestFunction · 0.85
runGraphicsTestFunction · 0.85
timerEventFunction · 0.85
mainFunction · 0.85

Calls 1

getTimeMethod · 0.80

Tested by

no test coverage detected