"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const timer = require("./src-timer.cjs");
function timeout(callback, delay, time) {
  var t = new timer.Timer();
  delay = delay == null ? 0 : +delay;
  t.restart((elapsed) => {
    t.stop();
    callback(elapsed + delay);
  }, delay, time);
  return t;
}
exports.default = timeout;
//# sourceMappingURL=src-timeout.cjs.map
