Back to index...

NameTypeDeprecatedSecureDescription
Inspect.Time.FramefunctionThe game time of the last frame. This function's return value will not change until the next frame.
Inspect.Time.RealfunctionA high-resolution realtime timer. Not measured in the same timespace as Inspect.Time.Frame.
Inspect.Time.ServerfunctionReturns the current server time.

Inspect.Time.Frame

The game time of the last frame. This function's return value will not change until the next frame.

Usage:

time = Inspect.Time.Frame()
ParameterTypeDatatypeDescription
timeresultnumberTime in seconds. Counted from an arbitrary point in the past. Guaranteed to be non-negative.

Inspect.Time.Real

A high-resolution realtime timer. Not measured in the same timespace as Inspect.Time.Frame.

Usage:

time = Inspect.Time.Real()
ParameterTypeDatatypeDescription
timeresultnumberTime in seconds. Counted from an arbitrary point in the past. Guaranteed to be non-negative.

Inspect.Time.Server

Returns the current server time.

Usage:

time = Inspect.Time.Server()
ParameterTypeDatatypeDescription
timeresultnumberServer time, as seconds from the Unix epoch.

Back to index...