aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'main.js')
-rw-r--r--main.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.js b/main.js
index d6394a5..ee1437d 100644
--- a/main.js
+++ b/main.js
@@ -40,6 +40,11 @@ function time_format(t)
ret += m + ":" + (s < 10 ? "0" : "");
ret += s;
+ /* Milliseconds */
+ const st = t.toString();
+ if (!isNaN(t) && st.indexOf(".") != -1)
+ ret += "." + st.split(".")[1];
+
return ret;
}