Vb.Net 2003 and Timer

DekaFlash

Well-known member
Joined
Feb 14, 2006
Messages
117
Programming Experience
1-3
I am trying to trigger a timer, which will start a progress bar.
The progress bar's activity is based on a millisecond value.

As VB time is not giving accurate enough results .. I would like it to run using the PC clock as its duration timer. I think this may be more accurate long term

Thanks,
Boulent
 
You can use the timer to keep the time event happening while calculating your accuracy off the actual system time. Record the date.now when starting the progress, and during the process calculate TimeSpan difference between this and current time. Although the timer interval event will be off due to heavy processing, the time calculation from start to 'now' will always be millisecond accurate.
 
Back
Top