F
fniles
In a VB6 programs and VB.NET programs using "Imports VBDT =
Microsoft.VisualBasic.DateAndTime", we use the function Timer like so:
VB6
MyTime = Format(Now, "dd-MMM-yyyy HH:nn:ss") & "." & Right(Format(Timer,
"#0.00"), 2)
VB.NET
Imports VBDT = Microsoft.VisualBasic.DateAndTime
MyTime = Format(Now, "dd-MMM-yyyy HH:nn:ss") & "." &
Right(VBDT.Timer.ToString("#0.00"), 2)
An example of the result of MyTime:
38624.73
In the above example, does 73 mean 73 miliseconds ? But, 1 seconds has 1000
miliseconds, so that doesn't make sense.
If the above function doesn't represent miliseond, what is the best way to
get the milliseconds ?
Thank you
Microsoft.VisualBasic.DateAndTime", we use the function Timer like so:
VB6
MyTime = Format(Now, "dd-MMM-yyyy HH:nn:ss") & "." & Right(Format(Timer,
"#0.00"), 2)
VB.NET
Imports VBDT = Microsoft.VisualBasic.DateAndTime
MyTime = Format(Now, "dd-MMM-yyyy HH:nn:ss") & "." &
Right(VBDT.Timer.ToString("#0.00"), 2)
An example of the result of MyTime:
38624.73
In the above example, does 73 mean 73 miliseconds ? But, 1 seconds has 1000
miliseconds, so that doesn't make sense.
If the above function doesn't represent miliseond, what is the best way to
get the milliseconds ?
Thank you