Unity - Scripting API: Time.realtimeSinceStartup
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
public static float realtimeSinceStartup;
Description
The real time in seconds since the game started (Read Only).
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.