Navigation
API > API/Runtime > API/Runtime/TimeManagement > API/Runtime/TimeManagement/UTimeSynchronizationSource
Description
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.
| Name | FindDistanceBetweenFramesWithRolloverModulus |
| Type | function |
| Header File | /Engine/Source/Runtime/TimeManagement/Public/TimeSynchronizationSource.h |
| Include Path | #include "TimeSynchronizationSource.h" |
static int32 FindDistanceBetweenFramesWithRolloverModulus
(
const FFrameTime & StartFrameTime,
const FFrameTime & EndFrameTime,
const TOptional < FFrameTime > & RolloverModulus,
bool & bDidRollover
)
Parameters
| Name | Remarks |
|---|---|
| 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. |