Backend half
This commit is contained in:
+9
@@ -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();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user