"use strict";
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const defaultTimestep = 1 / 60 * 1e3;
const getCurrentTime = typeof performance !== "undefined" ? () => performance.now() : () => Date.now();
const onNextFrame = typeof window !== "undefined" ? (callback) => window.requestAnimationFrame(callback) : (callback) => setTimeout(() => callback(getCurrentTime()), defaultTimestep);
exports.defaultTimestep = defaultTimestep;
exports.onNextFrame = onNextFrame;
//# sourceMappingURL=on-next-frame.js.map
