Function update
Synopsis
#include <Source/Falcor/Utils/Timing/CpuTimer.h>
TimePoint update()
Description
Update the timer.
- Returns
- The TimePoint of the last update() call. This value is meaningless on it's own. Call CCpuTimer::calcDuration() to get the duration that passed between 2 TimePoints
Source
Lines 51-57 in Source/Falcor/Utils/Timing/CpuTimer.h.
TimePoint update()
{
auto now = getCurrentTimePoint();
mElapsedTime = now - mCurrentTime;
mCurrentTime = now;
return mCurrentTime;
}