Private Declare Function timeGetTime Lib "winmm.dll" () As Long程序:
Dim aa As Long, kk As Long ' Integer
Static bb As Long
Dim i As Long
Dim ii As Long
Dim ll As Integer, mm As Integer
bb = timeGetTime() kk = 8
Do While (True)
aa = timeGetTime()
If aa - bb >= kk Then 'If aa / kk <> bb And aa Mod kk = 0 Then
Debug.Print "bb:" & bb & " aa:" & aa & " b-a:" & bb - aa
bb = aa 'bb = aa / kk
ii = ii + 1
End If
DoEvents '!!!!!!!!!!
ii = ii + 1 Loop为什么输出的bb - aa的值在不同的机器上不一样
Dim aa As Long, kk As Long ' Integer
Static bb As Long
Dim i As Long
Dim ii As Long
Dim ll As Integer, mm As Integer
bb = timeGetTime() kk = 8
Do While (True)
aa = timeGetTime()
If aa - bb >= kk Then 'If aa / kk <> bb And aa Mod kk = 0 Then
Debug.Print "bb:" & bb & " aa:" & aa & " b-a:" & bb - aa
bb = aa 'bb = aa / kk
ii = ii + 1
End If
DoEvents '!!!!!!!!!!
ii = ii + 1 Loop为什么输出的bb - aa的值在不同的机器上不一样
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货