Send to zulip

This commit is contained in:
Koper
2023-11-20 21:39:33 +07:00
parent 82f50817f8
commit ba40d28152
3609 changed files with 2311843 additions and 7 deletions

View File

@@ -0,0 +1,9 @@
module.exports = {
//provide realtime clock for performance measurement
now: function now() {
if (typeof performance !== 'undefined' && typeof performance.now === 'function') {
return performance.now();
}
return Date.now();
}
};

View File

@@ -0,0 +1,7 @@
module.exports = {
//provide realtime clock for performance measurement
now: function now() {
var second = process.hrtime();
return second[0] * 1000 + (second[1] / 1000000);
}
};