Millisecond -- Get Time to Millisecond
If you need to get the time down to the millisecond here is a small agent to do that. It uses a windows API call.
Option Public
Type SYSTEMTIME
wYear As Integer
wMonth As Integer
wDayOfWeek As Integer
wDay As Integer
wHour As Integer
wMinute As Integer
wSecond As Integer
wMilliseconds As Integer
End Type
Declare Sub GetLocalTime Lib "kernel32.dll" (lpSystemTime As SYSTEMTIME)
Dim localtime As SYSTEMTIME
Sub Initialize
Call GetLocalTime(localtime)
Print "Year " & Cstr(localtime.wYear)
Print "Month " & Cstr(localtime.wMonth)
Print "DOW " & Cstr(localtime.wDayOfWeek)
Print "Day " & Cstr(localtime.wDay)
Print "Hour " & Cstr(localtime.wHour)
Print "Minute " & Cstr(localtime.wMinute)
Print "Second " & Cstr(localtime.wSecond)
Print "MILLISECOND " & Cstr(localtime.wMilliseconds)
End Sub