Navigation
Unreal Engine C++ API Reference > Runtime > Core > GenericPlatform
Inheritance Hierarchy
- FGenericPlatformTime
- FUnixTime
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformTime.h |
Include | #include "GenericPlatform/GenericPlatformTime.h" |
Syntax
struct FGenericPlatformTime
Remarks
Generic implementation for most platforms
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
void | AutoUpdateGameThreadCPUTime
(
double UpdateInterval |
Registers automatic updates of Game Thread CPU utilization |
![]() ![]() |
uint32 | Cycles () |
|
![]() ![]() |
uint64 | Cycles64 () |
|
![]() ![]() |
FCPUTime | GetCPUTime () |
|
![]() ![]() |
double | ||
![]() ![]() |
double | Gets the per-thread CPU processing time (kernel + user) from the last update | |
![]() ![]() |
double | ||
![]() ![]() |
double | ||
![]() ![]() |
FCPUTime | Gets current threads CPU Utilization | |
![]() ![]() |
double | InitTiming () |
Does per platform initialization of timing information and returns the current time. |
![]() ![]() |
FString | PrettyTime
(
double Seconds |
Returns a pretty-string for a time given in seconds. (I.e. "4:31 min", "2:16:30 hours", etc) |
![]() ![]() |
double | Seconds () |
|
![]() ![]() |
TCHAR * | StrDate
(
TCHAR* Dest, |
Get the system date |
![]() ![]() |
TCHAR * | StrTime
(
TCHAR* Dest, |
Get the system time |
![]() ![]() |
const TCHAR * | StrTimestamp () |
Returns a timestamp string built from the current date and time. |
![]() ![]() |
void | SystemTime
(
int32& Year, |
Returns the system time. |
![]() ![]() |
float | ToMilliseconds
(
const uint32 Cycles |
Converts cycles to milliseconds. |
![]() ![]() |
double | ToMilliseconds64
(
const uint64 Cycles |
Converts cycles to milliseconds. |
![]() ![]() |
float | ToSeconds
(
const uint32 Cycles |
Converts cycles to seconds. |
![]() ![]() |
double | ToSeconds64
(
const uint64 Cycles |
Converts cycles to seconds. |
![]() ![]() |
bool | UpdateCPUTime
(
float DeltaTime |
Updates CPU utilization, called through a delegate from the Core ticker. |
![]() ![]() |
bool | UpdateThreadCPUTime
(
float |
Updates current thread CPU utilization, calling is user defined per-thread (unused float parameter, is for FTicker compatibility). |
![]() ![]() |
void | UtcTime
(
int32& Year, |
Returns the UTC time. |
Constants
Name | Description |
---|---|
LastIntervalCPUTimeInSeconds | |
SecondsPerCycle | |
SecondsPerCycle64 |