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

Function timerEvent

cpp/4_CUDA_Libraries/oceanFFT/oceanFFT.cpp:590–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590void timerEvent(int value)
591{
592 float time = sdkGetTimerValue(&timer);
593
594 if (animate) {
595 animTime += (time - prevTime) * animationRate;
596 }
597
598 glutPostRedisplay();
599 prevTime = time;
600
601 glutTimerFunc(REFRESH_DELAY, timerEvent, 0);
602}
603
604void cleanup()
605{

Callers

nothing calls this directly

Calls 1

sdkGetTimerValueFunction · 0.85

Tested by

no test coverage detected