Navigation
API > API/Runtime > API/Runtime/Core
Utility class to capture time passed in seconds, adding delta time to passed in variable. Not useful for reentrant functions
| Name | FSimpleScopeSecondsCounter |
| Type | class |
| Header File | /Engine/Source/Runtime/Core/Public/Stats/StatsMisc.h |
| Include Path | #include "Stats/StatsMisc.h" |
Syntax
class FSimpleScopeSecondsCounter
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSimpleScopeSecondsCounter
(
double& InSeconds, |
Ctor, capturing start time. | Stats/StatsMisc.h | |
FSimpleScopeSecondsCounter
(
double& InSeconds, |
Ctor, capturing start time. | Stats/StatsMisc.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSimpleScopeSecondsCounter() |
Dtor, updating seconds with time delta. | Stats/StatsMisc.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bEnabled | bool | Is the timer enabled or disabled | Stats/StatsMisc.h | |
| RecursionDepth | int32 * | Recursion depth | Stats/StatsMisc.h | |
| Seconds | double & | Time variable to update. | Stats/StatsMisc.h | |
| StartTime | double | Start time, captured in ctor. | Stats/StatsMisc.h |