Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FThreadHeartBeatClock Class Reference

#include <ThreadHeartBeat.h>

Public Member Functions

 FThreadHeartBeatClock (double InMaxTimeStep)
 
void Tick ()
 
double Seconds ()
 

Private Attributes

uint64 CurrentCycles
 
uint64 LastRealTickCycles
 
const uint64 MaxTimeStepCycles
 

Detailed Description

Our own local clock. Platforms that support suspend/resume have problems where a suspended title acts like a long hitch, causing the hang detector to fire incorrectly when the title is resumed.

To solve this, we accumulate our own time on the hang detector thread. When the title is suspended, this thread is also suspended, and the local clock stops. The delta is clamped so if we are resumed, the clock continues from where it left off.

Definition at line 35 of file ThreadHeartBeat.h.

Constructor & Destructor Documentation

◆ FThreadHeartBeatClock()

FThreadHeartBeatClock::FThreadHeartBeatClock ( double InMaxTimeStep)

Member Function Documentation

◆ Seconds()

double FThreadHeartBeatClock::Seconds ( )

◆ Tick()

void FThreadHeartBeatClock::Tick ( )

Member Data Documentation

◆ CurrentCycles

uint64 FThreadHeartBeatClock::CurrentCycles
private

Definition at line 37 of file ThreadHeartBeat.h.

◆ LastRealTickCycles

uint64 FThreadHeartBeatClock::LastRealTickCycles
private

Definition at line 38 of file ThreadHeartBeat.h.

◆ MaxTimeStepCycles

const uint64 FThreadHeartBeatClock::MaxTimeStepCycles
private

Definition at line 39 of file ThreadHeartBeat.h.


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