FThreadHeartBeatClock

Copyright Epic Games, Inc. All Rights Reserved.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/ThreadHeartBeat.h

Include

#include "HAL/ThreadHeartBeat.h"

Syntax

class FThreadHeartBeatClock

Remarks

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.

Constructors

Name Description

Public function

FThreadHeartBeatClock

(
    double InMaxTimeStep
)

Functions

Name Description

Public function

double

 

Seconds()

Public function

void

 

Tick()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss