![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ThreadHeartBeat.h>
Public Member Functions | |
| CORE_API | FThreadHeartBeatClock (double InMaxTimeStep) |
| CORE_API void | Tick () |
| CORE_API double | Seconds () |
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.
| FThreadHeartBeatClock::FThreadHeartBeatClock | ( | double | InMaxTimeStep | ) |
| double FThreadHeartBeatClock::Seconds | ( | ) |
| void FThreadHeartBeatClock::Tick | ( | ) |