If you design a class called HourGlass or SandTimer, there are a couple of approaches. You could have it post messages to windows or threads or have it be as simple as
That is the basic gist of it. You can expand it to post messages and have a timeout. That would required it to run a thread until the time has elapsed. Once it has elapsed, you can post messages to windows/threads that registered themselves with it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.