RealTimeclass

Access to time.

objectRealTime
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public static abstract sealed class Sandbox.RealTime

Properties5

Showing 5 properties

public static float Sandbox.RealTime.Delta { get; set; }PUBLICSTATICGETSET

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; }PUBLICSTATICGETSET

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; }PUBLICSTATICGETSET

The time since the game startup, in seconds.

Returns:float

public static double Sandbox.RealTime.NowDouble { get; set; }PUBLICSTATICGETSET

The time since the game startup as a double, in seconds.

Returns:double

public static float Sandbox.RealTime.SmoothDelta { get; set; }PUBLICSTATICGETSET

Like Delta but smoothed to avoid large disparities between deltas

Returns:float

On this page