Quick question, is it possible to get a system time in VB with precesion to a millisecond? Time and Now give you time only to a second but i need better resolution.
Public Declare Sub GetSystemTime Lib "kernel32" Alias "GetSystemTime" (lpSystemTime As SYSTEMTIME)
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
Probably worth pointing out that whilst SytemTime has a member called wMilliseconds it is not actually accurate to the millisecond. See my comments in thread222-799934 for an overview of why not.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.