Is there a way for me to keep a function running while I'm doing other things.
For example, a PC Rental System.
I set a time for a PC and went back to the main menu. How can I keep that time from running and not going back to 0 when I come back there. Suppose that the other things I do while I'm away from that first PC is that I am setting times for other PCs too. How can I keep those times not going back to 0 too.
The logic behind that would be that everything would be executed concurrently (or more like in the while loop, for every object, eachtime that while loop is executed).
You might want to learn about statemachines and listening for messages: basically how every program runs.