Private Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long
GetTickCount VB声明 Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long 说明 用于获取自windows启动以来经历的时间长度(毫秒) 返回值 Long,以毫秒为单位的windows运行时间 下面的过程可以写出它共用了多少时间 sub X() dim t as long t=gettickcount '########################函数的代码 '##################### '##################### debug.print gettickcount-t end sub
Declare Function GetTickCount Lib "kernel32" Alias "GetTickCount" () As Long
说明
用于获取自windows启动以来经历的时间长度(毫秒)
返回值
Long,以毫秒为单位的windows运行时间 下面的过程可以写出它共用了多少时间
sub X()
dim t as long
t=gettickcount
'########################函数的代码
'#####################
'#####################
debug.print gettickcount-t
end sub
这个函数得到的是什么呀
ms是月份和秒的混合体
以后配合timmer或者now()使用
是错误的,没仔细看,想当然了
是错误的,没仔细看,想当然了