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

Function sdkCreateTimer

Common/helper_timer.h:369–378  ·  view source on GitHub ↗

/////////////////////////////////////////////////////////////////////////// Create a new timer @return true if a time has been created, otherwise false @param name of the new timer, 0 if the creation failed ///////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

367//! @param name of the new timer, 0 if the creation failed
368////////////////////////////////////////////////////////////////////////////////
369inline bool sdkCreateTimer(StopWatchInterface **timer_interface) {
370// printf("sdkCreateTimer called object %08x\n", (void *)*timer_interface);
371#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
372 *timer_interface = reinterpret_cast<StopWatchInterface *>(new StopWatchWin());
373#else
374 *timer_interface =
375 reinterpret_cast<StopWatchInterface *>(new StopWatchLinux());
376#endif
377 return (*timer_interface != NULL) ? true : false;
378}
379
380////////////////////////////////////////////////////////////////////////////////
381//! Delete a timer

Callers 15

initCudaFunction · 0.85
operator()Method · 0.85
mainFunction · 0.85
operator()Method · 0.85
_initializeMethod · 0.85
initParticleSystemFunction · 0.85
operator()Method · 0.85
operator()Method · 0.85
mainFunction · 0.85
operator()Method · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 5

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