![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <ScopedTimers.h>
Inheritance diagram for FDurationAtomicTimer:Public Member Functions | |
| FDurationAtomicTimer (std::atomic< double > &AccumulatorIn, std::memory_order InMemoryOrder=std::memory_order_relaxed) | |
| double | Start () |
| double | Stop () |
Protected Attributes | |
| double | StartTime |
| std::atomic< double > & | Accumulator |
| std::memory_order | MemoryOrder |
Utility stopwatch class for tracking the duration of some action (tracks time in seconds and adds it to the specified variable on destruction), when the storage is std::atomic<double>.
|
inlineexplicit |
|
inline |
|
inline |
|
protected |
Time variable to update.
|
protected |
Memory order specified in constructor and passed to fetch_add.
|
protected |
Start time, captured in ctor.