Change sleep(nanoseconds) to be closer to nanosecond granularity rather than rounding to milliseconds [using a busy loop]