2个回答
展开全部
pause(DWORD t)
{
struct time time1;
DWORD last, now;
gettime(&time1);
last = (time1.ti_hour*60*60*100)+(time1.ti_min*60*100)+(time1.ti_sec*100)+time1.ti_hund;
do{
gettime(&time1);
now = (time1.ti_hour*60*60*100)+(time1.ti_min*60*100)+(time1.ti_sec*100)+time1.ti_hund;;
Application->ProcessMessages();
if (now < last)
now += (24*60*60*100);
}while(now < (last+t));
}
{
struct time time1;
DWORD last, now;
gettime(&time1);
last = (time1.ti_hour*60*60*100)+(time1.ti_min*60*100)+(time1.ti_sec*100)+time1.ti_hund;
do{
gettime(&time1);
now = (time1.ti_hour*60*60*100)+(time1.ti_min*60*100)+(time1.ti_sec*100)+time1.ti_hund;;
Application->ProcessMessages();
if (now < last)
now += (24*60*60*100);
}while(now < (last+t));
}
参考资料: http://zhidao.baidu.com/question/90188996.html?si=1
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询