Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FWindowsPlatformTime Struct Reference

#include <WindowsPlatformTime.h>

+ Inheritance diagram for FWindowsPlatformTime:
+ Collaboration diagram for FWindowsPlatformTime:

Static Public Member Functions

static double InitTiming ()
 
static FORCEINLINE double Seconds ()
 
static FORCEINLINE uint32 Cycles ()
 
static FORCEINLINE uint64 Cycles64 ()
 
static void SystemTime (int32 &Year, int32 &Month, int32 &DayOfWeek, int32 &Day, int32 &Hour, int32 &Min, int32 &Sec, int32 &MSec)
 
static void UtcTime (int32 &Year, int32 &Month, int32 &DayOfWeek, int32 &Day, int32 &Hour, int32 &Min, int32 &Sec, int32 &MSec)
 
static bool UpdateCPUTime (float DeltaTime)
 
static bool UpdateThreadCPUTime (float=0.0)
 
static void AutoUpdateGameThreadCPUTime (double UpdateInterval)
 
static FCPUTime GetCPUTime ()
 
static FCPUTime GetThreadCPUTime ()
 
static double GetLastIntervalThreadCPUTimeInSeconds ()
 
- Static Public Member Functions inherited from FGenericPlatformTime
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 float CPUTimePctRelative
 
- Static Protected Attributes inherited from FGenericPlatformTime
static double SecondsPerCycle
 
static double SecondsPerCycle64
 
static double LastIntervalCPUTimeInSeconds
 

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

Definition at line 18 of file WindowsPlatformTime.h.

Member Function Documentation

◆ AutoUpdateGameThreadCPUTime()

static void FWindowsPlatformTime::AutoUpdateGameThreadCPUTime ( double UpdateInterval)
static

◆ Cycles()

static FORCEINLINE uint32 FWindowsPlatformTime::Cycles ( )
inlinestatic

Definition at line 32 of file WindowsPlatformTime.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Cycles64()

static FORCEINLINE uint64 FWindowsPlatformTime::Cycles64 ( )
inlinestatic

Definition at line 39 of file WindowsPlatformTime.h.

+ Here is the call graph for this function:

◆ GetCPUTime()

static FCPUTime FWindowsPlatformTime::GetCPUTime ( )
static

◆ GetLastIntervalThreadCPUTimeInSeconds()

static double FWindowsPlatformTime::GetLastIntervalThreadCPUTimeInSeconds ( )
static

◆ GetThreadCPUTime()

static FCPUTime FWindowsPlatformTime::GetThreadCPUTime ( )
static

◆ InitTiming()

static double FWindowsPlatformTime::InitTiming ( )
static

◆ Seconds()

static FORCEINLINE double FWindowsPlatformTime::Seconds ( )
inlinestatic

Definition at line 23 of file WindowsPlatformTime.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SystemTime()

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

◆ UpdateCPUTime()

static bool FWindowsPlatformTime::UpdateCPUTime ( float DeltaTime)
static

◆ UpdateThreadCPUTime()

static bool FWindowsPlatformTime::UpdateThreadCPUTime ( float = 0.0)
static

◆ UtcTime()

static 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
staticprotected

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

Definition at line 60 of file WindowsPlatformTime.h.


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