Private Declare Sub GetSystemTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
Private 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
Private Sub Command1_Click()
Dim lpSystemTime As SYSTEMTIME
GetSystemTime lpSystemTime
MsgBox "当前时间:" & vbCrLf & Now & ":" & Format(lpSystemTime.wMilliseconds, "000")
End Sub