linux下usleep nanosleep select的比较经历
sleep:单位为秒,1秒usleep:单位为微秒,1/1000 秒select:单位为微秒,1/1000 000 秒nanosleep:单位为毫微秒,也就是纳秒,1/1000 000 000 秒现把比较代码贴出来:#include <stdio.h>#include <stdlib.h>#include <time.h>#include &lt..