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

#include <ApplePlatformTime.h>

+ Inheritance diagram for FApplePlatformTime:

Static Public Member Functions

static double InitTiming ()
 
static double Seconds ()
 
static uint32 Cycles ()
 
static uint64 Cycles64 ()
 
static FCPUTime GetCPUTime ()
 
- 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)
 

Additional Inherited Members

- 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

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 Apple platform implementation of the Time OS functions

Member Function Documentation

◆ Cycles()

static uint32 FApplePlatformTime::Cycles ( )
inlinestatic

◆ Cycles64()

static uint64 FApplePlatformTime::Cycles64 ( )
inlinestatic

◆ GetCPUTime()

FCPUTime FApplePlatformTime::GetCPUTime ( )
static

◆ InitTiming()

double FApplePlatformTime::InitTiming ( void  )
static

◆ Seconds()

static double FApplePlatformTime::Seconds ( )
inlinestatic

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