import { useRef as o, useEffect as r } from "react";
const u = (e = Date.now()) => {
  const t = o(e), n = () => Date.now() - t.current;
  return r(() => {
    t.current = e;
  }, [e]), n;
};
export {
  u as default
};
//# sourceMappingURL=useElapsedTime.js.map
