@enigmatis/polaris-common
Version:
common types for polaris
10 lines • 356 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.runAndMeasureTime = void 0;
exports.runAndMeasureTime = async (runnable) => {
const t0 = +new Date();
const returnValue = await runnable();
const t1 = +new Date();
return { returnValue, elapsedTime: t1 - t0 };
};
//# sourceMappingURL=common-methods.js.map