B
Brian
I'm writing a small app, one of the functions is like a stopwatch that is
counting down (or up) elapsed time. I need the elapsed time to at least
tenths of second (otherwise this would be a snap).
When updating a label with this time, it seems that I cannot get more
specific than a given second to define what "now" is. For example, to begin
prototyping I have a 100ms timer continually update a label. Each iteration
of the timer compares the current time to the static start time. Even in
measuring the difference in ticks reveals only second accuracy.
To continue the test, I can simply add 100 ms (the timer interval) as a
timespan to the start time each iteration, and this works. However I fear
this is really not accurate as I'm no longer measuring elapsed time, rather
accumulated iterations which in theory reflect time.
Any solutions to this? Hoping I'm doing something wrong.
Brian
counting down (or up) elapsed time. I need the elapsed time to at least
tenths of second (otherwise this would be a snap).
When updating a label with this time, it seems that I cannot get more
specific than a given second to define what "now" is. For example, to begin
prototyping I have a 100ms timer continually update a label. Each iteration
of the timer compares the current time to the static start time. Even in
measuring the difference in ticks reveals only second accuracy.
To continue the test, I can simply add 100 ms (the timer interval) as a
timespan to the start time each iteration, and this works. However I fear
this is really not accurate as I'm no longer measuring elapsed time, rather
accumulated iterations which in theory reflect time.
Any solutions to this? Hoping I'm doing something wrong.
Brian