add support to just wait until 0 processes, and not kill any; also return total time elapsed