import { time as s } from "../frameloop/sync-time.es.js";
import { frame as m, cancelFrame as o } from "../frameloop/frame.es.js";
function i(c, r) {
  const n = s.now(), e = ({ timestamp: a }) => {
    const t = a - n;
    t >= r && (o(e), c(t - r));
  };
  return m.setup(e, !0), () => o(e);
}
export {
  i as delay
};
//# sourceMappingURL=delay.es.js.map
