2008-06-06

Sleep Less Then 1 Second in C/C++

sleep(int second);

usleep(int micro-second);

 

{

struct timeval *tv;

    tv.tv_sec = 0;          // sec
    tv.tv_usec = 30;        // micro-second

}

select(1, NULL, NULL, NULL, timeout);  

沒有留言:

★★★★★★ 傑森系列 ★★★★★★