import { timeInterval } from "./interval.js";
const millisecond = timeInterval(() => {}, (e, t) => {
	e.setTime(+e + t);
}, (e, t) => t - e);
millisecond.every = (n) => (n = Math.floor(n), !isFinite(n) || !(n > 0) ? null : n > 1 ? timeInterval((e) => {
	e.setTime(Math.floor(e / n) * n);
}, (e, t) => {
	e.setTime(+e + t * n);
}, (e, t) => (t - e) / n) : millisecond), millisecond.range;
export { millisecond };
