Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:用GetTickCount()获取毫秒值

Posted by tbziy2 at 2011-05-21 22:29:09 on Problem 1011 and last updated at 2011-05-21 22:31:47
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator