Generic implementation for most platforms
更多...
#include <GenericPlatformTime.h>
|
| static FCPUTime | GetCPUTime () |
| |
| static double | GetSecondsPerCycle () |
| |
| static double | GetSecondsPerCycle64 () |
| |
| static FString | PrettyTime (double Seconds) |
| | Returns a pretty-string for a time given in seconds. 更多...
|
| |
| static TCHAR * | StrDate (TCHAR *Dest, SIZE_T DestSize) |
| | Get the system date 更多...
|
| |
| static TCHAR * | StrTime (TCHAR *Dest, SIZE_T DestSize) |
| | Get the system time 更多...
|
| |
| static const TCHAR * | StrTimestamp () |
| | Returns a timestamp string built from the current date and time. 更多...
|
| |
|
static float | ToMilliseconds (const uint32 Cycles) |
| | Converts cycles to milliseconds.
|
| |
|
static double | ToMilliseconds64 (const uint64 Cycles) |
| | Converts cycles to milliseconds.
|
| |
|
static float | ToSeconds (const uint32 Cycles) |
| | Converts cycles to seconds.
|
| |
|
static double | ToSeconds64 (const uint64 Cycles) |
| | Converts cycles to seconds.
|
| |
|
static bool | UpdateCPUTime (float DeltaTime) |
| | Updates CPU utilization, called through a delegate from the Core ticker.
|
| |
Generic implementation for most platforms
◆ GetCPUTime()
| static FCPUTime FGenericPlatformTime::GetCPUTime |
( |
| ) |
|
|
inlinestatic |
- 返回
- structure that contains CPU utilization data.
◆ GetSecondsPerCycle()
| static double FGenericPlatformTime::GetSecondsPerCycle |
( |
| ) |
|
|
inlinestatic |
◆ GetSecondsPerCycle64()
| static double FGenericPlatformTime::GetSecondsPerCycle64 |
( |
| ) |
|
|
static |
◆ PrettyTime()
| static FString FGenericPlatformTime::PrettyTime |
( |
double |
Seconds | ) |
|
|
static |
Returns a pretty-string for a time given in seconds.
(I.e. "4:31 min", "2:16:30 hours", etc)
- 参数
-
- 返回
- Time in a pretty formatted string
◆ StrDate()
| static TCHAR * FGenericPlatformTime::StrDate |
( |
TCHAR * |
Dest, |
|
|
SIZE_T |
DestSize |
|
) |
| |
|
static |
Get the system date
- 参数
-
| Dest | Destination buffer to copy to |
| DestSize | Size of destination buffer in characters |
- 返回
- Date string
◆ StrTime()
| static TCHAR * FGenericPlatformTime::StrTime |
( |
TCHAR * |
Dest, |
|
|
SIZE_T |
DestSize |
|
) |
| |
|
static |
Get the system time
- 参数
-
| Dest | Destination buffer to copy to |
| DestSize | Size of destination buffer in characters |
- 返回
- Time string
◆ StrTimestamp()
| static const TCHAR * FGenericPlatformTime::StrTimestamp |
( |
| ) |
|
|
static |
Returns a timestamp string built from the current date and time.
NOTE: Only one return value is valid at a time!
- 返回
- timestamp string
该结构体的文档由以下文件生成: