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

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 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.