import { time as o } from "../../frameloop/sync-time.es.js";
import { frameData as e, cancelFrame as a, frame as s } from "../../frameloop/frame.es.js";
const n = (m) => {
  const t = ({ timestamp: r }) => m(r);
  return {
    start: (r = !0) => s.update(t, r),
    stop: () => a(t),
    /**
     * If we're processing this frame we can use the
     * framelocked timestamp to keep things in sync.
     */
    now: () => e.isProcessing ? e.timestamp : o.now()
  };
};
export {
  n as frameloopDriver
};
//# sourceMappingURL=frame.es.js.map
