updating sleep() to ignore nanoseconds