FScopedDurationTimer

Utility class for tracking the duration of a scoped action (the user doesn't have to call [Start()](API\Runtime\Core\ProfilingDebugging\FDurationTimer\Start) and [Stop()](API\Runtime\Core\ProfilingDebugging\FDurationTimer\Stop) manually).

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

Core

Header

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

Include

#include "ProfilingDebugging/ScopedTimers.h"

Syntax

class FScopedDurationTimer : public FDurationTimer

Remarks

Utility class for tracking the duration of a scoped action (the user doesn't have to call Start() and Stop() manually).

Constructors

Name Description

Public function

FScopedDurationTimer

(
    double& AccumulatorIn
)

Destructors

Name Description

Public function

~FScopedDurationTimer()

Dtor, updating seconds with time delta.

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