Summary

A convenience struct to easily measure time since an event last happened, based on <see cref="P:Sandbox.RealTime.GlobalNow" />.<br /><br /> 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.: <code> RealTimeSince lastUsed = 0; if ( lastUsed &gt; 10 ) { /*Do something*/ } </code>

Properties

Absolute Time at which the timer reset happened, based on Sandbox.RealTime.GlobalNow.
Relative Time passed since last reset, in seconds.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.