I need an example of a timer to use. At the end, it should be an object to whom I would pass the duration (X ms) and a pointer to the function that should be called when the timer elapses (after X ms).
If anybody has an implementation, it would be great, but also advices would be very useful. I have never implemented any timer in C++.
Thank you in advance!