@gamestdio/clock
Advanced tools
Comparing version
@@ -6,3 +6,3 @@ "use strict"; | ||
this.running = false; | ||
this.now = (typeof (window) !== "undefined" && window.performance && (window.performance.now).bind(window.performance)) || Date.now; | ||
this.now = (typeof (window) !== "undefined" && window.performance && window.performance.now && (window.performance.now).bind(window.performance)) || Date.now; | ||
this.start(useInterval); | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "@gamestdio/clock", | ||
"version": "1.1.8", | ||
"version": "1.1.9", | ||
"description": "A simple clock/ticker implementation to track elapsed/delta time.", | ||
@@ -5,0 +5,0 @@ "author": "Endel Dreyer <endel.dreyer@gmail.com>", |
10803
0.24%