|
WinAPIをつかってもよいならば
GetLocalTime関数を使います。
例)
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 Declare Sub GetLocalTime Lib "kernel32" (lpSystemTime As SYSTEMTIME)
Public Sub Test()
Dim now As SYSTEMTIME
Dim s As String
Call GetLocalTime(now)
s = now.wYear & "年" _
& now.wMonth & "月" _
& now.wDay & "日" _
& now.wHour & "時" _
& now.wMinute & "分" _
& now.wSecond & "." & now.wMilliseconds & "秒"
MsgBox s, vbOKOnly, "現在時刻"
End Sub
100分の1秒が取得できるので、10分の1秒は取得できますよね?
|
|