Ark Server API (ASA) - Wiki
|
#include <GenericPlatformTime.h>
Static Public Member Functions | |
static TCHAR * | StrDate (TCHAR *Dest, SIZE_T DestSize) |
static TCHAR * | StrTime (TCHAR *Dest, SIZE_T DestSize) |
static const TCHAR * | StrTimestamp () |
static FString | PrettyTime (double Seconds) |
static bool | UpdateCPUTime (float DeltaTime) |
static bool | UpdateThreadCPUTime (float=0.0) |
static void | AutoUpdateGameThreadCPUTime (double UpdateInterval) |
static FCPUTime | GetCPUTime () |
static FCPUTime | GetThreadCPUTime () |
static double | GetLastIntervalCPUTimeInSeconds () |
static double | GetLastIntervalThreadCPUTimeInSeconds () |
static double | GetSecondsPerCycle () |
static float | ToMilliseconds (const uint32 Cycles) |
static float | ToSeconds (const uint32 Cycles) |
static double | GetSecondsPerCycle64 () |
static double | ToMilliseconds64 (const uint64 Cycles) |
static double | ToSeconds64 (const uint64 Cycles) |
Static Protected Attributes | |
static double | SecondsPerCycle |
static double | SecondsPerCycle64 |
static double | LastIntervalCPUTimeInSeconds |
Generic implementation for most platforms
Definition at line 42 of file GenericPlatformTime.h.
Registers automatic updates of Game Thread CPU utilization
Definition at line 128 of file GenericPlatformTime.h.
Definition at line 135 of file GenericPlatformTime.h.
Definition at line 153 of file GenericPlatformTime.h.
Gets the per-thread CPU processing time (kernel + user) from the last update
Definition at line 163 of file GenericPlatformTime.h.
Definition at line 171 of file GenericPlatformTime.h.
Gets current threads CPU Utilization
Definition at line 145 of file GenericPlatformTime.h.
Returns a pretty-string for a time given in seconds. (I.e. "4:31 min", "2:16:30 hours", etc)
Seconds | Time in seconds |
Get the system date
Dest | Destination buffer to copy to |
DestSize | Size of destination buffer in characters |
Get the system time
Dest | Destination buffer to copy to |
DestSize | Size of destination buffer in characters |
Returns a timestamp string built from the current date and time. NOTE: Only one return value is valid at a time!
Converts cycles to milliseconds.
Definition at line 176 of file GenericPlatformTime.h.
Converts cycles to milliseconds.
Definition at line 191 of file GenericPlatformTime.h.
Converts cycles to seconds.
Definition at line 182 of file GenericPlatformTime.h.
Converts cycles to seconds.
Definition at line 197 of file GenericPlatformTime.h.
Updates CPU utilization, called through a delegate from the Core ticker.
Definition at line 116 of file GenericPlatformTime.h.
Updates current thread CPU utilization, calling is user defined per-thread (unused float parameter, is for FTicker compatibility).
Definition at line 122 of file GenericPlatformTime.h.
|
staticprotected |
Definition at line 206 of file GenericPlatformTime.h.
|
staticprotected |
Definition at line 204 of file GenericPlatformTime.h.
|
staticprotected |
Definition at line 205 of file GenericPlatformTime.h.