My application has a feature, for example, the BlackBerry Stopwatch application:
A label that displays the time updated every 100 milliseconds.
I used a separate thread for the timer, which TimerTask plans to update the label.
Everything works fine, but I noticed that the stopwatch in my application is a little slower than the built-in BlackBerry stopwatch - it loses 1 second per minute.
Sometimes the timer in my application stops for a while, about 300-500 milliseconds, for unknown reasons.
What can make a timer in my application slower than a BlackBerry stopwatch?
Any suggestions for creating a stopwatch that runs as smoothly as a BlackBerry stopwatch?
source
share