Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Misc
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Misc/MonotonicTime.h |
| Include | #include "Misc/MonotonicTime.h" |
Syntax
struct FMonotonicTimePoint
Remarks
A point in time measured in seconds since an arbitrary epoch.
This is a monotonic clock which means the current time will never decrease. This time is meant primarily for measuring intervals. The interval between ticks of this clock is constant except for the time that the system is suspended on certain platforms. The tick frequency will differ between platforms, and must not be used as a means of communicating time without communicating the tick frequency together with the time.
Constructors
| Type | Name | Description | |
|---|---|---|---|
| constexpr |
Functions
| Type | Name | Description | |
|---|---|---|---|
| FMonotonicTimePoint | FromSeconds
(
const double Seconds |
Construct from seconds since the epoch. | |
| FMonotonicTimePoint | Infinity () |
||
| bool | IsInfinity () |
||
| bool | IsNaN () |
||
| FMonotonicTimePoint | Now () |
||
| double | ToSeconds () |
Seconds since the epoch. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| FMonotonicTimePoint | operator-
(
const FMonotonicTimeSpan Span |
||
| FMonotonicTimeSpan | operator-
(
const FMonotonicTimePoint Point |
||
| bool | operator!=
(
const FMonotonicTimePoint Other |
||
| FMonotonicTimePoint | operator+
(
const FMonotonicTimeSpan Span |
||
| bool | operator<
(
const FMonotonicTimePoint Other |
||
| bool | operator<=
(
const FMonotonicTimePoint Other |
||
| bool | operator==
(
const FMonotonicTimePoint Other |
||
| bool | operator>
(
const FMonotonicTimePoint Other |
||
| bool | operator>=
(
const FMonotonicTimePoint Other |