RealDocs

UKismetSystemLibrary::GetPlatformTime_Seconds

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

Description

Returns the current platform time in seconds, independent of gameplay time, pausing, or slomo. Intended for timing execution or timestamping data, such as measuring how long a Blueprint operation takes.

Caveats & Gotchas

  • Only compiled in WITH_EDITOR builds — this node does not exist in packaged/shipping builds, so it cannot be used for runtime profiling in a shipped game.
  • Deliberately marked BlueprintCallable rather than BlueprintPure, since implicit (pure) evaluation of a raw platform timestamp is easy to misread when the node fires more than once expected.
  • The value has no meaningful absolute reference point; only use it to measure elapsed time between two calls.

Signature

static double GetPlatformTime_Seconds()

Return Type

double

Example

Measure elapsed editor-time execution C++
double Start = UKismetSystemLibrary::GetPlatformTime_Seconds();
DoExpensiveEditorOperation();
double Elapsed = UKismetSystemLibrary::GetPlatformTime_Seconds() - Start;
UE_LOG(LogTemp, Log, TEXT("Took %f seconds"), Elapsed);

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.