AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
import { createWallClock, useWallClock } from "./useNowSecond";
const minuteClock = createWallClock(60_000);
/**
* Epoch milliseconds of the current wall-clock minute. Re-renders once a
* minute, in step with every other `useNowMinute` caller, while `enabled`.
*/
export function useNowMinute(enabled = true) {
return useWallClock(minuteClock, enabled);
}