display elapsed time
24 Apr 2017 14:26 #1
I was hoping to add a label that could display total time elapsed for the simulation.
I added a cPrecisionClock, started it in updateGraphics(void) and used clock.getCurrentTimeSeconds() to get the elapsed time. However, every time I debugged, the program stopped immediately.
How can I make it right?
many thanks.
Alex
Please Log in or Create an account to join the conversation.
25 Apr 2017 03:51 #2
I figured it out.
cPrecisionClock should be put in the main graphic while loop and then can set the label text in updateGraphics()
Please Log in or Create an account to join the conversation.