Class: Time

Core.Time

the time class

new Core.Time (fps)

Name Type Description
fps Number fixed tick duration by fps. if negative tick isn't fixed.

Methods

Core.Time.getTime ()Number static

gets arbitrary time measure as accurately as possible
Returns:
Type Description
Number the time from browser

getDeltaTime ()Number

gets the delta time between updates
Returns:
Type Description
Number the delta time

getTimeFromStart ()Number

get time from engine start
Returns:
Type Description
Number time from engine start

update ()

updates time & delta time