I want to create a timer in C++ and when a user presses a button, the program logs to an array the name of the button pressed and the time it was pressed.
Later, I want to be able to 'play back' what the user has done, eg. starting a timer, and simulating the button presses at the correctly logged time in the array.
Where would the best place to start be? Is there a timer function in C++?