The adafruit_ticks library provides a consistent way to work with deadlines and intervals in milliseconds, and with CircuitPython 7 even the smallest boards provide the `ticks_ms()` support function which never loses precision (unlike `time.monotonic()`).