FDurationTimer

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

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/ProfilingDebugging/ScopedTimers.h

Include

#include "ProfilingDebugging/ScopedTimers.h"

Syntax

class FDurationTimer

Remarks

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

Variables

Name Description

Protected variable

double &

 

Accumulator

Time variable to update.

Protected variable

double

 

StartTime

Start time, captured in ctor.

Constructors

Name Description

Public function

FDurationTimer

(
    double& AccumulatorIn
)

Functions

Name Description

Public function

double

 

Start()

Public function

double

 

Stop()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss