RealDocs

UKismetSystemLibrary::K2_GetTimerElapsedTimeHandle

function Engine Blueprint Since 4.24
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns how much time has elapsed in the current iteration of the timer referenced by the given handle.

Caveats & Gotchas

  • Returns -1.0 (not 0.0) if the timer no longer exists, which is easy to mistake for a genuinely small elapsed time if you don't check the sign.
  • For a looping timer, this resets to near zero at the start of every iteration — it is not a running total across all loops.

Signature

static float K2_GetTimerElapsedTimeHandle(const UObject* WorldContextObject, FTimerHandle Handle);

Parameters

Name Type Description Default
WorldContextObject const UObject* Supplied automatically by the Blueprint compiler to resolve the owning world's timer manager; hidden from the node's visible pins.
Handle FTimerHandle The handle of the timer to check the elapsed time of.

Return Type

float

Example

Drive a progress bar from a stored handle (Blueprint) Blueprint
Widget graph on Tick: divide 'Get Timer Elapsed Time by Handle' for CastBarTimerHandle by the original cast duration to compute a 0-1 progress ratio for a spell cast bar.

Version History

Introduced in: 4.24

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.