API ReferenceSandbox
public static abstract sealed class Sandbox.RealTime
Access to time.
Related Guides
Broader workflow and conceptual references connected to this API.
Properties
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)
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.
public static float Sandbox.RealTime.Now { get; set; }
The time since the game startup, in seconds.
public static double Sandbox.RealTime.NowDouble { get; set; }
The time since the game startup as a double, in seconds.
public static float Sandbox.RealTime.SmoothDelta { get; set; }
Like Delta but smoothed to avoid large disparities between deltas
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:Sandbox.RealTime |