pub fn sleep_unless_interrupted(total: Duration) -> bool
Sleep for total, waking early if the process is told to stop. True when it woke early.
total