UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FScopedDurationAtomicTimer Class Reference

#include <ScopedTimers.h>

+ Inheritance diagram for FScopedDurationAtomicTimer:

Public Member Functions

 FScopedDurationAtomicTimer (std::atomic< double > &AccumulatorIn, std::memory_order InMemoryOrder=std::memory_order_relaxed)
 
 ~FScopedDurationAtomicTimer ()
 
- Public Member Functions inherited from FDurationAtomicTimer
 FDurationAtomicTimer (std::atomic< double > &AccumulatorIn, std::memory_order InMemoryOrder=std::memory_order_relaxed)
 
double Start ()
 
double Stop ()
 

Additional Inherited Members

- Protected Attributes inherited from FDurationAtomicTimer
double StartTime
 
std::atomic< double > & Accumulator
 
std::memory_order MemoryOrder
 

Detailed Description

Utility class for tracking the duration of a scoped action (the user doesn't have to call Start() and Stop() manually), when the storage is std::atomic<double>.

Constructor & Destructor Documentation

◆ FScopedDurationAtomicTimer()

FScopedDurationAtomicTimer::FScopedDurationAtomicTimer ( std::atomic< double > &  AccumulatorIn,
std::memory_order  InMemoryOrder = std::memory_order_relaxed 
)
inlineexplicit

◆ ~FScopedDurationAtomicTimer()

FScopedDurationAtomicTimer::~FScopedDurationAtomicTimer ( )
inline

Dtor, updating seconds with time delta.


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