mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-05-04 11:12:21 -07: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:
parent
22a529b28d
commit
e366aa3746
4 changed files with 8 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue