Hi everyone.
I'm using the clocks library and have a chronometer runing.
This chronometer stops when there is no move for a certain amount of time (GPS controled)..this is all working.
My problem, is that after stopping the chronometer, at let's say 1:29 I want it to restart at that point (not revert to zero).
The code that initializes the chrono is the standard
then later in the code I stop it.
Now I want to start again, but continuing the count.
I have ChronoBase, but setting chrono.basetime again to Chronobase, before start again, does not work.
Can some one help with this ?
Thanks
Jose
I'm using the clocks library and have a chronometer runing.
This chronometer stops when there is no move for a certain amount of time (GPS controled)..this is all working.
My problem, is that after stopping the chronometer, at let's say 1:29 I want it to restart at that point (not revert to zero).
The code that initializes the chrono is the standard
B4X:
Chrono.Initialize("Chrono")
ChronoBase = Chrono.GetElapsedRealTime
Chrono.BaseTime = ChronoBase
Chrono.Start
then later in the code I stop it.
Now I want to start again, but continuing the count.
I have ChronoBase, but setting chrono.basetime again to Chronobase, before start again, does not work.
Can some one help with this ?
Thanks
Jose
Last edited: