As Bob mentioned, I posted some short code examples that automatically keeps time - the first of the two updates an lcd display. It works best for long term accuracy. If you do not need more that long term second to second accuracy, they might just work. The first program given keeps time in hh:MM format. The second in HH:MM:SS format. You could easily add the :SS to the first program and add your stopwatch timer function in the section marked “Do something here.”
These program are here http://www.picbasic.co.uk/forum/forumdisplay.php?f=11
Take a look. Also worth mentioning is Melanie's “Olympic Timer,” which is in the example code section of this forum as well.
Good Luck,
Paul Borgmeier
Salt Lake City, Utah
USA
Bookmarks