RealDocs

UKismetSystemLibrary::K2_GetTimerElapsedTimeDelegate

function Engine Blueprint Deprecated Since 4.0
Deprecated: Use Get Timer Elapsed Time by Handle instead.
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns how much time has elapsed in the current iteration of a timer set against a bound event delegate. This is the deprecated 'by Event' node, superseded by the handle-based equivalent.

Caveats & Gotchas

  • • Deprecated in favor of Get Timer Elapsed Time by Handle — the delegate-based lookup re-resolves the timer by scanning for a matching bound delegate, which is slower and ambiguous if the same function is bound to multiple active timers.
  • • Returns -1.0 (not 0.0) if no timer is currently set for the given delegate, which is easy to mistake for a genuinely elapsed time of essentially zero.

Signature

static float K2_GetTimerElapsedTimeDelegate(UPARAM(DisplayName="Event") FTimerDynamicDelegate Delegate);

Parameters

Name Type Description Default
Delegate FTimerDynamicDelegate The bound event (K2 function or Custom Event) whose timer's elapsed time is being queried. Shown as 'Event' in Blueprint. —

Return Type

float

Example

Read elapsed time for a bound event (Blueprint) Blueprint
Event graph: wire the same Custom Event used in 'Set Timer by Event' into the Event pin of 'Get Timer Elapsed Time by Event' to display progress toward the next fire; prefer storing the FTimerHandle and switching to 'Get Timer Elapsed Time by Handle' instead.

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable —

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.