XWidgetSoft Forum
https://www.bbs.xwidget.com/

Stop Watch
https://www.bbs.xwidget.com/viewtopic.php?f=11&t=1956
Page 1 of 1

Author:  rjp74 [ August 7th, 2012, 8:58 am ]
Post subject:  Stop Watch

A simple stop watch with start, pause, resume and stop functions.
I encountered two problems that I could not solve:
a) the getMilliseconds() does not return the correct values. So I was not able to use this.
b) setting the timer to tick every 10 milliseconds was too quick a repeat time and was unreliable.
so I have made the stop watch accurate to 0.1 second only as 100 milliseconds for the timer seems to work fine.

Attachments:
File comment: Stop watch default Image
Default.png
Default.png [ 8.66 KiB | Viewed 3375 times ]
File comment: Stop Watch
rjp_stop_watch.zip [12.9 KiB]
Downloaded 325 times

Author:  Tony [ August 7th, 2012, 5:52 pm ]
Post subject:  Re: Stop Watch

Thanks for your widget, can you upload a snapshot? thanks :)

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/