split sleeping into 1 second chunks and stop if supposed to.
split sleeping into 1 second chunks and stop if supposed to.