Switch "scheduler" to nanosleep