Assuming you're working with C# in Unity, check out Time.timeSinceLevelLoad. It's a read-only float that equals the time in seconds since the scene loaded.
Unity docs: https://docs.unity3d.com/ScriptReference/Time-timeSinceLevelLoad.html
Assuming you're working with C# in Unity, check out Time.timeSinceLevelLoad. It's a read-only float that equals the time in seconds since the scene loaded.
Unity docs: https://docs.unity3d.com/ScriptReference/Time-timeSinceLevelLoad.html