My app has a feature like the BlackBerry Stopwatch application:
A label displaying the time, updated every 100 milliseconds.
I've used a separate thread for a Timer which schedules a TimerTask to update the label.
Everything works fine, but I've noticed the the stopwatch in my app runs a little bit slower than the built-in BlackBerry stopwatch -- it loses 1 second per minute.
Sometimes the timer in my app halts for a while, about 300-500 milliseconds, for unknown reasons.
What could make the Timer in my app slower than the BlackBerry stopwatch?
Any suggestions to create a stopwatch which run as smoothly as the BlackBerry stopwatch?