GetTickCount函數
来源:互联网 发布:邮件整理软件 编辑:程序博客网 时间:2024/05/01 14:00
【函数名】
GetTickCount
【库名】
kernel32
【适用范围】
95/98/ME/NT/2000/XP
【VB声明】
Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long
【说明】 用于获取自windows启动以来经历的时间长度(毫秒)
【返回值】 Long,以毫秒为单位的windows运行时间
通常用来计算某个操作所使用的时间:
Start:=GetTickCount;
...//执行耗时的操作
Stop:=GetTickCount;
TimeUsed:=(Stop-Start)/1000; //使用了xxx秒
也可以用来做延时程序:
Procedure TForm1.Delay(Msecs: Integer);
var
firstTickCount : real;
begin
firstTickCount := GetTickCount;
Repeat
Until ((GetTickCount - firstTickCount) >= longInt(Msecs));
end;
- GetTickCount函數
- GetTickCount
- GetTickCount
- GetTickCount
- 7.GetTickCount
- GetTickCount() 用法
- GetTickCount函数
- GetTickCount函数
- GetTickCount函数
- GetTickCount函数
- GetTickcount函数
- GetTickCount函数
- GetTickCount()和GetCurrentTime()
- GetTickCount的实现
- GetTickCount使用的注意事项
- C++ GetTickCount函数
- VC GetTickCount ()函数
- getpeername(),getsockname(),listen(),gettickcount()
- C#解析PCX图形文件..
- “透视”笔记本隐藏分区
- Linux内核模块使用指南
- 协同系统 打开企业信息管理成功的大门
- 【转】编译时遇到如下错误error C2061: syntax error : identifier 'THIS_FILE'
- GetTickCount函數
- JS汉字编码转换(转)
- P2P知识(1)--P2P技术与信息安全
- 关于全角空格
- hibernate.cfg.xml
- 简单分页(只有第一页、上一页、下一页、末一页)
- sql server2005后版本中,with递归做做子查询
- 开博客了
- eclipse中搜索替换所有中文字符