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

#include <ScopedTimers.h>

+ Inheritance diagram for FDurationTimer:

Public Member Functions

 FDurationTimer (double &AccumulatorIn)
 
double Start ()
 
double Stop ()
 

Protected Attributes

double StartTime
 
doubleAccumulator
 

Detailed Description

Utility stopwatch class for tracking the duration of some action (tracks time in seconds and adds it to the specified variable on destruction).

Constructor & Destructor Documentation

◆ FDurationTimer()

FDurationTimer::FDurationTimer ( double AccumulatorIn)
inlineexplicit

Member Function Documentation

◆ Start()

double FDurationTimer::Start ( )
inline

◆ Stop()

double FDurationTimer::Stop ( )
inline

Member Data Documentation

◆ Accumulator

double& FDurationTimer::Accumulator
protected

Time variable to update.

◆ StartTime

double FDurationTimer::StartTime
protected

Start time, captured in ctor.


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