Api Sandbox RealTimeUntil
struct

RealTimeUntil

public sealed struct RealTimeUntil

A convenience struct to easily manage a time countdown, based on GlobalNow. Typical usage would see you assigning to a variable of this type a necessary amount of seconds. Then the struct would return the time countdown, or can be used as a bool i.e.: RealTimeUntil nextAttack = 10; if ( nextAttack ) { /*Do something*/ }

Properties

Name Type Description
Absolute Double Time to which we are counting down to, based on GlobalNow.
Relative Double The actual countdown, in seconds.
Passed Double Amount of seconds passed since the countdown started.
Fraction Double The countdown, but as a fraction, i.e. a value from 0 (start of countdown) to 1 (end of countdown)
Assembly: Sandbox.System Namespace: Sandbox Full Name: Sandbox.RealTimeUntil