KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a windowless timer (no WM_TIMER) which fires a callback function only once when a given time period is elapsed. It is implemented as a SetTimer()/KillTimer() . Time periods are small enough: 100-300 milliseconds. Is that cheap enough (I mean performance) to call SetTimer()/KillTimer() pair for every such short time interval? What if I have 100 such timers which periodically call SetTimer()/KillTimer() ? How much Window timer objects may exist simultaneously in the system? That is the question: Use a bunch of such timer objects and rely on good Windows implementation of timers, or create one Windows timer object that ticks every, say, 30 milliseconds, and subscribe all custom 100-300 milliseconds one-time timers to it. Thanks
Tags (comma-separated)
Save Edits
Cancel