Timeclass

object→Time
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Time

Constructors1

Showing 1 constructors

public Time()PUBLICCONSTRUCTOR

Methods1

Showing 1 methods

public static System.IDisposable Scope(double now, double delta)PUBLICSTATIC

Temporarily override the game clock, restoring it when the scope is disposed.

ParameterTypeDescription
nowdouble—
deltadouble—
Returns:IDisposable—

Properties3

Showing 3 properties

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

The delta between the last frame and the current (for all intents and purposes).

Returns:float—

public static float Sandbox.Time.Now { get; set; }PUBLICSTATICGETSET

The time since the game startup.

Returns:float—

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

The time since the game startup as a double.

Returns:double—

On this page