Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:用GetTickCount()获取毫秒值In Reply To:请教下你们是怎么看自己的程序跑某个数据花了多长时间的? Posted by:darkcaller at 2010-10-09 21:51:53 #include<windows.h>//POJ不支持该头文件 ... DWORD dwStartTime = GetTickCount(); //相关耗时代码 cout<<"耗时"<<GetTickCount()-dwStartTime<<"ms"<<endl; Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator