UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

11 lines (10 loc) 340 B
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 };