Skip to main content

Time

Complete API reference for Time, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Time

Component: no


public class Time

Virtual Attributes

NameTypeAccessDescription
deltaTimefloatgetReturns the time (in seconds) between the last frame and the current one.
frameTimefloatgetReturns the time (in seconds) between the last frame and the current one.
timeScalefloatget/setReturns the current time scale.
timeSpeedfloatget/setReturns the current time speed.
unscaledDeltaTimefloatgetReturns the time (in seconds) between the last frame and the current one without time scale (real time).
unscaledFrameTimefloatgetReturns the time (in seconds) between the last frame and the current one without time scale (real time).

Static Methods

SignatureReturnsDescription
deltaTime()floatReturns the time (in seconds) between the last frame and the current one.
frameTime()floatReturns the time (in seconds) between the last frame and the current one.
unscaledDeltaTime()floatReturns the time (in seconds) between the last frame and the current one without time scale (real time).