Timer, saving events to an array in C++
<p>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.</p>

<p>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.</p>

<p>Where would the best place to start be? Is there a timer function in C++?</p>
