How can I get system time including milliseconds?
All I can get at the moment is hh:mm:ss,
I really need the milliseconds as well,
eg. hh:mm:ss:milliseconds.
Any help appreciated.
Printable View
How can I get system time including milliseconds?
All I can get at the moment is hh:mm:ss,
I really need the milliseconds as well,
eg. hh:mm:ss:milliseconds.
Any help appreciated.
Try this:
caption=Time & "," & Right(Int(Timer * 100), 2)
Use the timeGetTime function. It returns the system time in milliseconds.
For example, in the declarations section of your project
Public Declare Function timeGetTime Lib "winmm.dll" () As Long
Dim lTime As Long
then wherever you want to get the time
lTime = timeGetTime