fortissimo-html
Version:
Fortissimo HTML - Flexible, Forgiving, Formatting HTML Parser
19 lines • 610 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.processMillis = void 0;
function processMillis() {
if (typeof performance !== 'undefined')
return performance.now();
else if (typeof process !== 'undefined') {
if (process.hrtime.bigint)
return Number(process.hrtime.bigint()) / 1000000;
else {
const time = process.hrtime();
return time[0] * 1000 + time[1] / 1000000;
}
}
else
return Date.now();
}
exports.processMillis = processMillis;
//# sourceMappingURL=platform-specifics.js.map