Use Date.now() instead of new Date()

Just for when what we actually want is a millisecond counter.

Interesting video about this:

https://www.youtube.com/watch?v=Vo72W1HWeFI
This commit is contained in:
Jermolene
2014-04-14 09:02:52 +01:00
parent 22a529b28d
commit e366aa3746
4 changed files with 8 additions and 8 deletions

View File

@@ -475,7 +475,7 @@ exports.timer = function(base) {
} else if(window.performance) {
m = performance.now();
} else {
m = new Date();
m = Date.now();
}
if(typeof base !== "undefined") {
m = m - base;