MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / timeFromFrame

Function timeFromFrame

Source/Falcor/Utils/Timing/Clock.cpp:86–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 // intra-frame steps
85
86double timeFromFrame(uint64_t frame, uint64_t ticksPerFrame)
87{
88 return double(frame * ticksPerFrame) / (double)kTicksPerSecond;
89}
90
91uint64_t frameFromTime(double seconds, uint64_t ticksPerFrame)
92{

Callers 1

Clock.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected