Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

請問如何計算程式跑的時間

0 views
Skip to first unread message

只想認真工作

unread,
Mar 12, 1999, 3:00:00 AM3/12/99
to

各位同學想請教你們一個問題,
如果想要在VC裡面計算一個程式跑的時間該如何寫??

舊版的TC是
#include<time.h>
time t1,t2;
t1=time(0);
.
.
.
.
t2=time(0);
cout<<int(t2-t1);

那不知新的VC應該如何呼叫物件來寫??
請各位知道的同學幫幫忙!!
謝謝k
--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>

Gary Lin

unread,
Mar 12, 1999, 3:00:00 AM3/12/99
to
只想認真工作 wrote:

> 各位同學想請教你們一個問題,
> 如果想要在VC裡面計算一個程式跑的時間該如何寫??

用GetTickCount ()


0 new messages