Navigation
API > API/Plugins > API/Plugins/IKRig
| Name | FOpExecutionTimer |
| Type | struct |
| Header File | /Engine/Plugins/Animation/IKRig/Source/IKRig/Public/Retargeter/IKRetargetOps.h |
| Include Path | #include "Retargeter/IKRetargetOps.h" |
Syntax
struct FOpExecutionTimer
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| RunningAverageTime | double | Running average of past n frames | Retargeter/IKRetargetOps.h | |
| TimeThisFrame | double | Profiling data; time in seconds of last execution | Retargeter/IKRetargetOps.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddTimeThisFrame
(
const double InSeconds |
Call this to add some execution time for this frame NOTE: this may be called multiple times per frame | Retargeter/IKRetargetOps.h | |
double GetRunningAverage() |
Returns the current running average execution time using a 30 frame exponential moving average | Retargeter/IKRetargetOps.h | |
void Reset() |
Reset the running average execution time | Retargeter/IKRetargetOps.h | |
void StartNewFrame() |
Reset the per-frame time and update the running average | Retargeter/IKRetargetOps.h |