Scribe.js/dist/libs/time.js
bluejamesbond b29dcb6a6c
Updating UI for perf; core fixes
Adding socket options

Core changes; config management; serializing
2016-04-11 06:06:51 -05:00

14 lines
318 B
JavaScript

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = time;
function time() {
if (typeof process !== 'undefined' && typeof process.hrtime === 'function') {
var duration = process.hrtime();
return duration[0] * 1000 + duration[1] / 1e6;
}
return Date.now();
}