sleep

sleep

windows和Linux对于休眠sleep函数的区别

windows平台#include <windows.h>Sleep(unsigned long dwMilliseconds);--->单位毫秒Linux平台#include <unistd.h>sleep(unsigned int seconds);----->