UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FWindowsPlatformTime Struct Reference

#include <WindowsPlatformTime.h>

+ Inheritance diagram for FWindowsPlatformTime:

Static Public Member Functions

static CORE_API double InitTiming ()
 
static double Seconds ()
 
static uint32 Cycles ()
 
static uint64 Cycles64 ()
 
static CORE_API void SystemTime (int32 &Year, int32 &Month, int32 &DayOfWeek, int32 &Day, int32 &Hour, int32 &Min, int32 &Sec, int32 &MSec)
 
static CORE_API void UtcTime (int32 &Year, int32 &Month, int32 &DayOfWeek, int32 &Day, int32 &Hour, int32 &Min, int32 &Sec, int32 &MSec)
 
static CORE_API bool UpdateCPUTime (float DeltaTime)
 
static CORE_API bool UpdateThreadCPUTime (float=0.0)
 
static CORE_API void AutoUpdateGameThreadCPUTime (double UpdateInterval)
 
static CORE_API FCPUTime GetCPUTime ()
 
static CORE_API FCPUTime GetThreadCPUTime ()
 
static CORE_API double GetLastIntervalThreadCPUTimeInSeconds ()
 
- Static Public Member Functions inherited from FGenericPlatformTime
static CORE_API TCHARStrDate (TCHAR *Dest, SIZE_T DestSize)
 
static CORE_API TCHARStrTime (TCHAR *Dest, SIZE_T DestSize)
 
static CORE_API const TCHARStrTimestamp ()
 
static CORE_API 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 uint64 SecondsToCycles64 (double Seconds)
 

Static Protected Attributes

static CORE_API float CPUTimePctRelative = 0.0f
 
- Static Protected Attributes inherited from FGenericPlatformTime
static CORE_API double SecondsPerCycle = 0.0
 
static CORE_API double SecondsPerCycle64 = 0.0
 
static CORE_API double LastIntervalCPUTimeInSeconds = 0.0
 

Detailed Description

Windows implementation of the Time OS functions.

Please see following UDN post about using rdtsc on processors that support result being invariant across cores.

https://udn.epicgames.com/lists/showpost.php?id=46794&list=unprog3

Member Function Documentation

◆ AutoUpdateGameThreadCPUTime()

void FWindowsPlatformTime::AutoUpdateGameThreadCPUTime ( double  UpdateInterval)
static

◆ Cycles()

static uint32 FWindowsPlatformTime::Cycles ( )
inlinestatic

◆ Cycles64()

static uint64 FWindowsPlatformTime::Cycles64 ( )
inlinestatic

◆ GetCPUTime()

FCPUTime FWindowsPlatformTime::GetCPUTime ( )
static

◆ GetLastIntervalThreadCPUTimeInSeconds()

double FWindowsPlatformTime::GetLastIntervalThreadCPUTimeInSeconds ( )
static

◆ GetThreadCPUTime()

FCPUTime FWindowsPlatformTime::GetThreadCPUTime ( )
static

◆ InitTiming()

double FWindowsPlatformTime::InitTiming ( void  )
static

◆ Seconds()

static double FWindowsPlatformTime::Seconds ( )
inlinestatic

◆ SystemTime()

void FWindowsPlatformTime::SystemTime ( int32 Year,
int32 Month,
int32 DayOfWeek,
int32 Day,
int32 Hour,
int32 Min,
int32 Sec,
int32 MSec 
)
static

◆ UpdateCPUTime()

bool FWindowsPlatformTime::UpdateCPUTime ( float  DeltaTime)
static

◆ UpdateThreadCPUTime()

bool FWindowsPlatformTime::UpdateThreadCPUTime ( float  = 0.0)
static

◆ UtcTime()

void FWindowsPlatformTime::UtcTime ( int32 Year,
int32 Month,
int32 DayOfWeek,
int32 Day,
int32 Hour,
int32 Min,
int32 Sec,
int32 MSec 
)
static

Member Data Documentation

◆ CPUTimePctRelative

float FWindowsPlatformTime::CPUTimePctRelative = 0.0f
staticprotected

Percentage CPU utilization for the last interval relative to one core.


The documentation for this struct was generated from the following files: