Hello
Problems ....
Using a timer to create a stopwatch.
The second gush
Press the home button
Next
When you run the program.
State leads in the very first seconds.
Example))
1 second 2 seconds 3 seconds ....
Home Button
(10 seconds past the next).
When the program
4 seconds 5 seconds
14 seconds for the program is normal to come out ...
Please help.
Timers are paused when the activity is paused. Timers are not accurate as they run in the main thread.
You should instead compare the current time to the start time with DateTime.Now.
There is a Chronometer (stopwatch) example in the Clocks library. You could use the Chronometer for timing and make it not visible or place it off the screen if you don't want to see it.