程序中需要休眠的时候,就用到了sleep,接下来我总结一下
#include<unistd.h>
sleep(1); //停留1秒 usleep(1000); //停留1毫秒
posted on 2012-06-14 17:26 liang_87 阅读(250) 评论(0) 编辑 收藏 举报