select sleep is more accurate than sleep

//Some code in kfs is written like this

//Block for 5 seconds

sleep: The unit is seconds, 1 second

usleep: The unit is microseconds, 1/1000 000 seconds, one millionth of a second

select: The unit is microseconds, 1/1000 000 seconds, one millionth of a second

nanosleep: The unit is nanoseconds, that is, nanoseconds, 1/1000 000 000 seconds

Guess you like

Origin blog.csdn.net/jrckkyy/article/details/6165193