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 | |
|---|---|---|---|
| constexpr FMonotonicTimePoint | FromSeconds
(
const double Seconds |
Construct from seconds since the epoch. | |
| constexpr FMonotonicTimePoint | Infinity () |
||
| constexpr bool | IsInfinity () |
||
| bool | IsNaN () |
||
| FMonotonicTimePoint | Now () |
||
| constexpr double | ToSeconds () |
Seconds since the epoch. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| constexpr FMonotonicTimePoint | operator-
(
const FMonotonicTimeSpan Span |
||
| constexpr FMonotonicTimeSpan | operator-
(
const FMonotonicTimePoint Point |
||
| constexpr bool | operator!=
(
const FMonotonicTimePoint Other |
||
| constexpr FMonotonicTimePoint | operator+
(
const FMonotonicTimeSpan Span |
||
| constexpr bool | operator<
(
const FMonotonicTimePoint Other |
||
| constexpr bool | operator<=
(
const FMonotonicTimePoint Other |
||
| constexpr bool | operator==
(
const FMonotonicTimePoint Other |
||
| constexpr bool | operator>
(
const FMonotonicTimePoint Other |
||
| constexpr bool | operator>=
(
const FMonotonicTimePoint Other |