I can use Time or Now to get real time-stamp & timer decimal part for milliseconds, but the two are not 'holding hands', the Time second increment is not aligned to the 999 -> 000 ms.
(I reversed the order of Print #...'s just to be sure)
I don't know If/How? I can get real time from Timer integer part.
Using Win7x64
Code: Select all
'Test Extract Decimal (Timer ms value)
#include "vbcompat.bi"
Dim As Uinteger FnumDebug
FnumDebug = FreeFile
Open "debug_Tms.txt" For Output As FnumDebug
For Lp1 As Integer = 1 To 50
Print #FnumDebug, Format(Now, "hh:mm:ss"); ".";
Print #FnumDebug, Trim(Right(Str(Int(Timer*1000)),3)) ' Get the ms from Timer
' ' Print #FnumDebug, Timer; " Start" ' same
Sleep 20 ' ~30ms acording to Timer (but observed sometimes not ?)
' ' Print #FnumDebug, Timer; " End"
Next
beep
Output
Code: Select all
12:41:01.804
12:41:01.831
12:41:01.862
12:41:01.893
12:41:01.924
12:41:01.955
12:41:01.987
12:41:01.018
12:41:01.049
12:41:01.080
12:41:01.111
12:41:01.143
12:41:01.174
12:41:01.205
12:41:02.236
12:41:02.267
12:41:02.299
12:41:02.330
12:41:02.361
12:41:02.392
12:41:02.423
12:41:02.454
12:41:02.486
12:41:02.517
12:41:02.548
12:41:02.579
12:41:02.611
12:41:02.642
12:41:02.673
12:41:02.704
12:41:02.735
12:41:02.767
12:41:02.798
12:41:02.829
12:41:02.860
12:41:02.891
12:41:02.923
12:41:02.954
12:41:02.985
12:41:02.016
12:41:02.047
12:41:02.079
12:41:02.110
12:41:02.141
12:41:02.172
12:41:02.203
12:41:03.235
12:41:03.266
12:41:03.297
12:41:03.328