"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.auditTime = void 0;
const async_js_1 = require("../scheduler/async.js");
const audit_js_1 = require("./audit.js");
const timer_js_1 = require("../observable/timer.js");
function auditTime(duration, scheduler = async_js_1.asyncScheduler) {
    return (0, audit_js_1.audit)(() => (0, timer_js_1.timer)(duration, scheduler));
}
exports.auditTime = auditTime;