FDurationTimer

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

Choose your operating system:

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()