Navigation
API > API/Runtime > API/Runtime/Core
Unix implementation of the Time OS functions
| Name | FUnixTime |
| Type | struct |
| Header File | /Engine/Source/Runtime/Core/Public/Unix/UnixPlatformTime.h |
| Include Path | #include "Unix/UnixPlatformTime.h" |
Syntax
struct FUnixTime : public FGenericPlatformTime
Inheritance Hierarchy
- FGenericPlatformTime → FUnixTime
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| CalibrationLog | char | Log information about calibrating the clock. | Unix/UnixPlatformTime.h |
| ClockSource | int | Clock source to use | Unix/UnixPlatformTime.h |
Functions
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static void AutoUpdateGameThreadCPUTime
(
double UpdateInterval |
Unix/UnixPlatformTime.h | ||
static int CalibrateAndSelectClock() |
Benchmarks clock_gettime(), possibly switches to something else is too slow. Unix-specific. | Unix/UnixPlatformTime.h | |
static uint64 CallsPerSecondBenchmark
(
clockid_t BenchClockId, |
Returns number of time we can call the clock per second. | Unix/UnixPlatformTime.h | |
static uint32 Cycles() |
Unix/UnixPlatformTime.h | ||
static uint64 Cycles64() |
Unix/UnixPlatformTime.h | ||
static int GetClockSource() |
Unix/UnixPlatformTime.h | ||
static FCPUTime GetCPUTime() |
Unix/UnixPlatformTime.h | ||
static double GetLastIntervalThreadCPUTimeInSeconds() |
Unix/UnixPlatformTime.h | ||
static FCPUTime GetThreadCPUTime() |
Unix/UnixPlatformTime.h | ||
static double InitTiming() |
Unix/UnixPlatformTime.h | ||
static void PrintCalibrationLog() |
Calibration log to be printed at later time | Unix/UnixPlatformTime.h | |
static double Seconds() |
Unix/UnixPlatformTime.h | ||
static bool UpdateCPUTime
(
float DeltaSeconds |
Unix/UnixPlatformTime.h | ||
static bool UpdateThreadCPUTime
(
float |
Unix/UnixPlatformTime.h |