标题:timeGetTime
取消只看楼主
无条件为你
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2005-12-13
 问题点数:0 回复次数:2 
timeGetTime
#include"windows.h"
#include<stdio.h>
#include<iostream.h>
void main()
{
DWORD t1,t2;
t1=timeGetTime();
Sleep(1000);
t2=timeGetTime();
printf("begin:%n\n",t1);
printf("end:%n\n",t2);
printf("lasting:%n\n",t2-t1);
}
why it error ?can anyone help me!thank you !
搜索更多相关主题的帖子: timeGetTime 
2005-12-14 21:11
无条件为你
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2005-12-13
得分:0 

my teacher told us that,next week i will get the answer ,wait for me !

2005-12-15 17:44
无条件为你
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2005-12-13
得分:0 

忘了来了了,谢谢楼上的各位了,在project->settings->link->Object/library modules中加上winmm.lib。可以通过两次返回的差值计算出所用的计算时间(毫秒数)。如果是中文版的就在 工程-》设置-》LINK-》option project加入winmm.lib就可以了!

2005-12-23 21:25



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-38189-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.082573 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved