nanosleep - high resolution sleep
#include <magenta/syscalls.h>
mx_status_t mx_nanosleep(mx_time_t nanoseconds);
nanosleep() suspends the calling thread execution for at least nanoseconds nanoseconds. The special value MX_TIME_INFINITE suspends the calling thread execution indefinitely. The value 0 immediately yields the thread.
nanosleep() returns NO_ERROR on success.
Currently the smallest nonzero sleep is 1 millisecond. Intervals smaller than that are equivalent to 1ms.