c++的while定時器

#include <ctime>
std:: time_t  c=std:: time (NULL);
while (std:: difftime ( time (NULL),c)<300){
}

定時循環300秒code

相關文章
相關標籤/搜索