Added rate to time.

This commit is contained in:
Devine Lu Linvega
2019-07-20 19:44:30 +09:00
parent 2d1e08cf9f
commit 9e8c65ea13
2 changed files with 11 additions and 13 deletions

View File

@@ -337,8 +337,8 @@ function Library (ronin) {
return args
}
this.time = () => { // Returns timestamp in milliseconds.
return Date.now()
this.time = (rate = 1) => { // Returns timestamp in milliseconds.
return (Date.now() * rate)
}
this.animate = (play = true) => { // Toggles animation.