Post Reply 
Stopwatch functionality
02-07-2019, 06:25 AM
Post: #7
RE: Stopwatch functionality

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.


Although I work for the HP calculator group, the views and opinions I post here are my own. I do not speak for HP.
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
Stopwatch functionality - KeithB - 02-06-2019, 02:50 PM
RE: Stopwatch functionality - Tim Wessman - 02-06-2019, 04:06 PM
RE: Stopwatch functionality - KeithB - 02-06-2019, 04:36 PM
RE: Stopwatch functionality - KeithB - 02-06-2019, 04:42 PM
RE: Stopwatch functionality - StephenG1CMZ - 02-06-2019, 04:29 PM
RE: Stopwatch functionality - KeithB - 02-06-2019, 04:39 PM
RE: Stopwatch functionality - cyrille de brébisson - 02-07-2019 06:25 AM
RE: Stopwatch functionality - KeithB - 02-07-2019, 07:47 PM

User(s) browsing this thread: 1 Guest(s)