Navigation
Unreal Engine C++ API Reference > Runtime > TimeManagement > UTimeSynchronizationSource
References
Module | TimeManagement |
Header | /Engine/Source/Runtime/TimeManagement/Public/TimeSynchronizationSource.h |
Include | #include "TimeSynchronizationSource.h" |
static int32 FindDistanceBetweenFramesWithRolloverModulus
&40;
const FFrameTime & StartFrameTime,
const FFrameTime & EndFrameTime,
const TOptional< FFrameTime > & RolloverModulus,
bool & bDidRollover
&41;
Remarks
Calculates the distance between two frames. This method accounts for rollover (when used), and assumes the frames will always be relatively close together. This is also a convenient method to use to check whether or not a rollover has happened within a range of frames.
Parameters
Name | Description |
---|---|
StartFrameTime | The start time in the range. |
EndFrameTime | The end time in the range. |
RolloverModulus | Rollover frame value. Unset if rollover isn't used. |
bDidRollover | [out] Whether or not a rollover occurred in the input range. |