mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 04:06:51 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user