P park jae hyun Member Licensed User Longtime User Oct 9, 2011 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2011 #2 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. Upvote 0
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.
agraham Expert Licensed User Longtime User Oct 10, 2011 #3 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. Upvote 0
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.