HP Forums

Full Version: Stopwatch functionality
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it true that there is not yet a stopwatch for the prime?

Just asking before I try to write one!
It is easy to write. It will not be accurate however.
Before you write one...
There is a very simple timer included within my ZIPP program, but it might suffice for timing an event.
http://www.hpmuseum.org/forum/thread-4981.html
(02-06-2019 04:06 PM)Tim Wessman Wrote: [ -> ]It is easy to write. It will not be accurate however.

Does anyone use a calculator stopwatch for accuracy? 8^)
(02-06-2019 04:29 PM)StephenG1CMZ Wrote: [ -> ]Before you write one...
There is a very simple timer in my ZIPP program
http://www.hpmuseum.org/forum/thread-4981.html

Thanks.
You might want to include a list of the functionality. I searched the Prime software forum for "stopwatch" and got no hits.
(02-06-2019 04:06 PM)Tim Wessman Wrote: [ -> ]It is easy to write. It will not be accurate however.

The system date/time must be based on a more accurate RTC. I could do a long term correction based on that.
Hello,

Time/Date functions should be relatively accurate. But has a 1s granularity.

Ticks is much less accurate, but has a ~ms granularity.

From memory, both on G1 and G2, any drifts in Ticks should be consistent on a given unit at a given temperature. So, a good strategy would be to:
When user hits start: call ticks.
As time progresses, monitor "time". On a second change, take the ticks...
When the user hits stops, call ticks.
Take the first and last second change ticks. Use it to calculate the number of ticks per second. Do the ratio.

Cyrille
Good idea, thanks Cyrille!
Reference URL's