Small performance win by using nanosleep instead of sched_yield