Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Declare Function GetTickCount Lib "kernel32.dll" () As Long
- Sub testTimer()
- Dim t As Long
- Dim i As Long
- Dim a As Long
- t = GetTickCount
- 'code
- For i = 1 To 25000000
- a = a + 1
- Next
- 'code
- MsgBox GetTickCount - t, , "Milliseconds"
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment