Use `time` to sleep, not the float