1
Answer

Stopwatch- Best approach

parker_dave

parker_dave

16y
6.1k
1
I am writing an app to track elapsed time for bike racer. I can start a stopwatch OK, in a window that displays overall time and elapsed time. I want to be able to open a child window to enter individual ride rs numbers and then capture the elapsed time for that rider by pressing a button or Enter key. Is there a way to grab the stopwa tchs  elapsed time from one window to another? I tried setting up a class that used the stopwatch but I still have to do a Stopwatch sw = new stopwatch() in the different windows which, of course, gets me a new one. Is there a way to create a unveral or global stopwatch?
Answers (1)