Navigation
Unreal Engine C++ API Reference > Runtime > Core > ProfilingDebugging
Inheritance Hierarchy
- FScopedSwitchedDurationTimer
- FScopedSwitchedCountedDurationTimer
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/ProfilingDebugging/ScopedTimers.h |
Include | #include "ProfilingDebugging/ScopedTimers.h" |
Syntax
class FScopedSwitchedDurationTimer
Remarks
Utility stopwatch class for tracking the duration of some action (tracks time in seconds and adds it to the specified variable on destruction). useful for timing that only wants to occur when a feature is optionally turned on
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
double & | Accumulator | Time variable to update. |
![]() |
const bool | bDoFunctionality | |
![]() |
double | StartTime | Start time, captured in ctor. |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FScopedSwitchedDurationTimer
(
double& AccumulatorIn, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
double | Start () |