projects
/
mkws-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f31bd27
)
debug(): format timestamps with 3 digits, e.g. 0.1 -> 0.100
author
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 19 Dec 2013 13:29:29 +0000
(13:29 +0000)
committer
Wolfram Schneider
<wosch@indexdata.dk>
Thu, 19 Dec 2013 13:29:29 +0000
(13:29 +0000)
tools/htdocs/mkws.js
patch
|
blob
|
history
diff --git
a/tools/htdocs/mkws.js
b/tools/htdocs/mkws.js
index
e32f61c
..
8b40745
100644
(file)
--- a/
tools/htdocs/mkws.js
+++ b/
tools/htdocs/mkws.js
@@
-88,7
+88,7
@@
mkws.debug_function = function (string) {
}
var now = $.now();
- var timestamp = (now - mkws.debug_time.start)/1000 + " (+" + (now - mkws.debug_time.last)/1000 + ") "
+ var timestamp = ((now - mkws.debug_time.start)/1000).toFixed(3) + " (+" + ((now - mkws.debug_time.last)/1000).toFixed(3) + ") "
mkws.debug_time.last = now;
// you need to disable use strict at the top of the file!!!