import { useRef as n, useEffect as t } from "../external/.pnpm/preact@10.28.2/node_modules/preact/hooks/dist/hooks.module.js";
const s = () => {
  const e = n(void 0), r = n(0);
  return t(() => (r.current = performance.now(), () => {
    e.current = performance.now() - r.current;
  }), []), { duration: e };
};
export {
  s as default
};
