time: round up to next millisecond for timeouts