版权声明:转载请标明出处 https://blog.csdn.net/martinkeith/article/details/89377112
#include <unistd.h>
sleep(1);//1表示延时一表,与windows下的Sleep(1);不同,Sleep(1)表示延时1毫秒,如果需要延时一毫秒,在linux下需要使用usleep(1);
#include <unistd.h>
sleep(1);//1表示延时一表,与windows下的Sleep(1);不同,Sleep(1)表示延时1毫秒,如果需要延时一毫秒,在linux下需要使用usleep(1);