#include <unistd.h>
unsigned int sleep(unsigned int seconds);//睡眠秒
返回值:成功返回0,或者返回剩余的要睡眠的秒数(被signal中断后).
int usleep(useconds_t usec);//睡眠微秒
返回值:成功返回0,出错返回-1.
useconds_t == unsigned int
秒的进制:
1秒 (s)= 1000毫秒(ms)
1毫秒 = 1000微秒(us)
1微秒 = 1000纳秒(ns)