Api Sandbox RealTimeSince
struct

RealTimeSince

public sealed struct RealTimeSince

A convenience struct to easily measure time since an event last happened, based on GlobalNow. Typical usage would see you assigning 0 to a variable of this type to reset the timer. Then the struct would return time since the last reset. i.e.: RealTimeSince lastUsed = 0; if ( lastUsed > 10 ) { /*Do something*/ }

Properties

Name Type Description
Absolute Double Time at which the timer reset happened, based on GlobalNow.
Relative Single Time passed since last reset, in seconds.
Assembly: Sandbox.System Namespace: Sandbox Full Name: Sandbox.RealTimeSince