API ReferenceSandbox
RealTimeclass
Access to time.
object→RealTime
Properties5
Showing 5 properties
public static float Sandbox.RealTime.Delta { get; set; }
The time delta (in seconds) between the last frame and the current (for all intents and purposes)
Returns:
float—public static double Sandbox.RealTime.GlobalNow { get; set; }
The number of a seconds since a set point in time. This value should match between servers and clients. If they have their timezone set correctly.
Returns:
double—public static float Sandbox.RealTime.Now { get; set; }
The time since the game startup, in seconds.
Returns:
float—public static double Sandbox.RealTime.NowDouble { get; set; }
The time since the game startup as a double, in seconds.
Returns:
double—public static float Sandbox.RealTime.SmoothDelta { get; set; }
Like Delta but smoothed to avoid large disparities between deltas
Returns:
float—No results match this filter.