engine
 
载入中...
搜索中...
未找到
静态 Public 成员函数 | 所有成员列表
FGenericPlatformTime结构体 参考

Generic implementation for most platforms 更多...

#include <GenericPlatformTime.h>

+ 类 FGenericPlatformTime 继承关系图:

静态 Public 成员函数

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
返回
seconds per cycle.

◆ GetSecondsPerCycle64()

static double FGenericPlatformTime::GetSecondsPerCycle64 ( )
static
返回
seconds per cycle.

◆ 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)

参数
SecondsTime in seconds
返回
Time in a pretty formatted string

◆ StrDate()

static TCHAR * FGenericPlatformTime::StrDate ( TCHAR *  Dest,
SIZE_T  DestSize 
)
static

Get the system date

参数
DestDestination buffer to copy to
DestSizeSize of destination buffer in characters
返回
Date string

◆ StrTime()

static TCHAR * FGenericPlatformTime::StrTime ( TCHAR *  Dest,
SIZE_T  DestSize 
)
static

Get the system time

参数
DestDestination buffer to copy to
DestSizeSize 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

该结构体的文档由以下文件生成: