Calculating elapsed time
Hi
I am trying to write a timer that will report the minutes that have elapsed since pressing a button.
Things work fine using a timer to advance a counter by adding one to the counter every minute, but this not very efficient, and certainly does not work if the game shifts to the background when running another app.
Any suggestions/examples on how to monitor the elapsed time so it will work when the app is not open?
Thanks
I am trying to write a timer that will report the minutes that have elapsed since pressing a button.
Things work fine using a timer to advance a counter by adding one to the counter every minute, but this not very efficient, and certainly does not work if the game shifts to the background when running another app.
Any suggestions/examples on how to monitor the elapsed time so it will work when the app is not open?
Thanks
Comments
Cheers
Cant even determine what type (real, integer, etc) these variables are in.
It will be a demo to show how you can know whether the app has been made inactive either via the home button or switching to another app. This obviously relies on the system time and includes how to find out the elapsed time.
Have to wait for the game contest I'm currently in to finish before I can get any work done on creating the video though sorry