FSimpleScopeSecondsCounter

Utility class to capture time passed in seconds, adding delta time to passed in variable.

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

FSimpleScopeSecondsCounter

FControlRigSimpleScopeSecondsCounter

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Stats/StatsMisc.h

Include

#include "Stats/StatsMisc.h"

Syntax

class FSimpleScopeSecondsCounter

Remarks

Utility class to capture time passed in seconds, adding delta time to passed in variable. Not useful for reentrant functions

Constructors

Name Description

Public function

FSimpleScopeSecondsCounter

(
    double& InSeconds,
    bool bInEnabled
)

Ctor, capturing start time.

Public function

FSimpleScopeSecondsCounter

(
    double& InSeconds,
    int32* InRecursionDepth
)

Ctor, capturing start time.

Destructors

Name Description

Public function

~FSimpleScopeSecondsCounter()

Dtor, updating seconds with time delta.