Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/FAppTime
Description
Equivalent to GetCurrentTime(), but can be called from any thread, rather than only from threads with valid time contexts. The returned value is loaded via a relaxed atomic read, and therefore can race updates from the game thread.
Use only for systems that require an approximate incrementing timer, where getting a value from a frame that is off-by-one is not important. Do not use in systems where the current time directly affects the game simulation or rendered pixels. Those systems should use GetCurrentTime() to ensure they retrieve the appropriate time value via the inherited time context.
| Name | GetApproximateCurrentTime |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Misc/AppTime.h |
| Include Path | #include "Misc/AppTime.h" |
static double GetApproximateCurrentTime()