Skip to main content

Time

class Time

Class responsible for obtaining game time information.


public class Time

— Static Methods (10) —

NameDescription
float deltaTime()Returns the interval(in seconds) from the last frame to the current frame.
float getDeltaTime()Returns the interval(in seconds) from the last frame to the current frame.
float frameTime()Returns the start time of the current frame.
float unscaledDeltaTime()Returns the time interval(in seconds) between the last frame and current frame regardless of the time scale.
float getUnscaledDeltaTime()Returns the time interval(in seconds) between the last frame and current frame regardless of the time scale.
float getUnscaledFrameTime()Returns the start time of the current frame regardless of the timescale.
float getTimeSpeed()Returns the speed of the current game time.
void setTimeSpeed(float value)Sets the speed of the current game time to be "value" argument.
float getTimeScale()Returns the speed of the current game time.
void setTimeScale(float value)Sets the speed of the current game time to be "value" argument.