import { MotionGlobalConfig } from "./dist-es-utils-GlobalConfig.js";
import { frameData } from "./dist-es-frameloop-frame.js";
let now;
function clearTime() {
  now = void 0;
}
const time = {
  now: () => {
    if (now === void 0) {
      time.set(frameData.isProcessing || MotionGlobalConfig.useManualTiming ? frameData.timestamp : performance.now());
    }
    return now;
  },
  set: (newTime) => {
    now = newTime;
    queueMicrotask(clearTime);
  }
};
export {
  time
};
//# sourceMappingURL=dist-es-frameloop-sync-time.js.map
