Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


realtimeSinceStartup

The real time in seconds since the game started (Read Only).
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static float realtimeSinceStartup { get; }

Remarks

In most cases, use Time.realtimeSinceStartupAsDouble, which offers more precision, particularly over extended periods of real-world time. Refer to its documentation for information about both properties.
Use
Time.realtimeSinceStartup
with other single-precision properties that return float instead of double such as
fixedTime
,
fixedUnscaledTime
,
time
,
timeSinceLevelLoad
, and
unscaledTime
.