linux下的延时函数

版权声明:转载请标明出处 https://blog.csdn.net/martinkeith/article/details/89377112

#include <unistd.h>

sleep(1);//1表示延时一表,与windows下的Sleep(1);不同,Sleep(1)表示延时1毫秒,如果需要延时一毫秒,在linux下需要使用usleep(1);

猜你喜欢

转载自blog.csdn.net/martinkeith/article/details/89377112
今日推荐