nit: feels weird that both `unit` and `time` are the same thing, but easy enough to fix with a top-level utility function.