Elapsed time - how to update every second?
Hi,
I'm working on an internet cafe program to keep track of all the times (when a customer starts, and when a customer stops, etc).
I'm just starting to learn Java at the moment so my progress is a bit slow at the moment! However, I'm slowly getting a grasp on things.
Here's my question:
Start time: 17:24:01 (24 hour format)
Stop time: <-how can I get this to advance like a stopwatch to see the elapsed time from the start time to the current time (ie. how long the customer has been using a computer)?
So far, I'm able to start the time, stop the time, calculate the elapsed time, and store the values in an array, but I'm not sure how to display the elapsed time in "live" format.
If anyone could point me in the right direction it would be great! I've been searching for ages on the net but I can't seem to find the info I need.
I'm not a student looking for a solution to my homework! I'm just trying to get my newbie feet wet in Java :-)
Thanks!

