Hi!
How do I get hold of the time in 10's of a second in VB 6.0?
Or how do I make a DLL, whose purpose is to get the time in milliseconds, in C++ to use with in VB 6.0?
Please help some students from Bergen, Norway.
Printable View
Hi!
How do I get hold of the time in 10's of a second in VB 6.0?
Or how do I make a DLL, whose purpose is to get the time in milliseconds, in C++ to use with in VB 6.0?
Please help some students from Bergen, Norway.
I don't know if it will help but the function Timer returns the number of seconds since midnight (and includes decimal places)
eg;
Msgbox Timer
You could always use the timer control.
Have the interval set to 100ms.
Then every time it fires, thats a 1/10th of a second.
You can then add that onto the current time in seconds.
Obviously the two would have to be in sync.
So you'd just start the timer once the seconds of the system clock change.
- jamie
Might try this, along with plenderj's and Buzby's suggestions.
Code:Private Sub Timer1_Timer()
Label1.Caption = Format(Now(), "hh:nn:ss:") & Mid(Timer, 7, 1)
End Sub