Make your own free website on Tripod.com

Determine How Much Time Windows Is Running

'Add a module to your project (In the menu choose Project -> Add Module, Then click Open)
'This example will give you the number of milliseconds that windows runs.
'1000 milliseconds=1 second. to convert from milliseconds to seconds, divide in 1000.
'Insert this code to the module :

Declare Function GetTickCount Lib "kernel32" () As Long

'Insert this code to your form:

Private Sub Form_Load()
MsgBox GetTickCount()
End Sub

Go Back