07-23-2011 07:28 AM
I'm trying to make implement a timer into an app. I want a buton to trigger a timer whcih will stop when I click again on the buton and then will save the time between the clicks to us eit for further purposes.
But I can't find how to make a timer. Anyone an idea?
Solved! Go to Solution.
07-23-2011 04:39 PM
If you just want to know the time difference, then
will give you this.
If not, can you explain what you are actually trying to do? If you are struggling with creating a 'clock' that ticks, can you tell us what you have tried and why it has not worked.
07-24-2011 07:12 AM
Assuming you just want to display seconds, then something simple like:
Assume you have previously defined and added to the screen this Field
BasicEditFielld timeElpasedField = new BasicEditField("Seconds: ", null, 25, BasicEditField.READONLY);
long elapsedTime = System.currentMillis() - previousTime;