"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const GlobalConfig = require("./dist-es-utils-GlobalConfig.cjs");
const frame = require("./dist-es-frameloop-frame.cjs");
let now;
function clearTime() {
  now = void 0;
}
const time = {
  now: () => {
    if (now === void 0) {
      time.set(frame.frameData.isProcessing || GlobalConfig.MotionGlobalConfig.useManualTiming ? frame.frameData.timestamp : performance.now());
    }
    return now;
  },
  set: (newTime) => {
    now = newTime;
    queueMicrotask(clearTime);
  }
};
exports.time = time;
//# sourceMappingURL=dist-es-frameloop-sync-time.cjs.map
