Struct Time Tracks time-based statistics about the running game.
Constructors
Name Description
this
(total, elapsed)
Instantiate an instance where runningSlowly is false .
this
(other, runningSlowly)
Instantiate a copy of an instance of Time with an explicit value for runningSlowly .
Properties
Name Type Description
delta[get]
core . time . Duration Amount of time elapsed since the last update.
deltaMilliseconds[get]
long Amount of time elapsed since the last update, in milliseconds.
deltaSeconds[get]
float Amount of time elapsed since the last update, in seconds.
runningSlowly[get]
bool Whether or not the game loop is taking longer than its targetElapsedTime . In this case, the
game loop can be considered to be running too slowly and should do something to "catch up."
total[get]
core . time . Duration Amount of time elapsed since the start of the game.
totalMilliseconds[get]
long Amount of time elapsed since the start of the game, in milliseconds.
totalSeconds[get]
float Amount of time elapsed since the start of the game, in seconds.
zero[get]
Time An instance of Time where total , delta , and runningSlowly is false
Authors
Chance Snow
Copyright
Copyright © 2020 Chance Snow. All rights reserved.
License
3-Clause BSD License