![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ProcessTimer.h>
Public Member Functions | |
| TProcessTimer () | |
| double | GetSeconds () |
| void | Start () |
| void | Stop () |
| void | SetPause (bool bPause) |
| void | Reset () |
Class for wrapping timing functionality with pause feature. The class is thread safe. We template the dependency for cycles so that the class can be nicely tested. Under normal circumstances, use FProcessTimer, which is a typedef below.
|
inline |
Default constructor zeros members.
|
inline |
Gets the currently accumulated time in seconds, accounting for any time paused.
|
inline |
|
inline |
Set whether the process being timed is paused. Automatically adjusts timer results for paused durations.
| bPause | Whether the process is currently paused. |
|
inline |
Start timing. Repeated calls before a Stop() are ignored.
|
inline |
Stop timing and accumulate the recording. Repeated calls before a Start() are ignored.