Navigation
API > API/Runtime > API/Runtime/Core
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.
| Name | FMonotonicTimePoint |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/MonotonicTime.h |
| Include Path | #include "Misc/MonotonicTime.h" |
Syntax
struct FMonotonicTimePoint
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
constexpr FMonotonicTimePoint() |
Misc/MonotonicTime.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Time | double | Misc/MonotonicTime.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsInfinity() |
Misc/MonotonicTime.h | ||
bool IsNaN() |
Misc/MonotonicTime.h | ||
double ToSeconds() |
Seconds since the epoch. | Misc/MonotonicTime.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FMonotonicTimePoint FromSeconds
(
const double Seconds |
Construct from seconds since the epoch. | Misc/MonotonicTime.h | |
static FMonotonicTimePoint Infinity() |
Misc/MonotonicTime.h | ||
static FMonotonicTimePoint Now() |
Misc/MonotonicTime.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FMonotonicTimePoint operator-
(
const FMonotonicTimeSpan Span |
Misc/MonotonicTime.h | ||
FMonotonicTimeSpan operator-
(
const FMonotonicTimePoint Point |
Misc/MonotonicTime.h | ||
bool operator!=
(
const FMonotonicTimePoint Other |
Misc/MonotonicTime.h | ||
FMonotonicTimePoint operator+
(
const FMonotonicTimeSpan Span |
Misc/MonotonicTime.h | ||
bool operator==
(
const FMonotonicTimePoint Other |
Misc/MonotonicTime.h | ||
bool operator>
(
const FMonotonicTimePoint Other |
Misc/MonotonicTime.h | ||
bool operator>=
(
const FMonotonicTimePoint Other |
Misc/MonotonicTime.h |