#include <ctime>
std::
time_t
c=std::
time
(NULL);
while
(std::
difftime
(
time
(NULL),c)<300){
}
定时循环300秒
#include <ctime>
std::
time_t
c=std::
time
(NULL);
while
(std::
difftime
(
time
(NULL),c)<300){
}
定时循环300秒
转载于:https://my.oschina.net/u/1401481/blog/223600