Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » extracted Timer from Ctrl
Re: extracted Timer from Ctrl [message #25323 is a reply to message #25313] Wed, 17 February 2010 09:32 Go to previous messageGo to previous message
kohait00 is currently offline  kohait00
Messages: 939
Registered: July 2009
Location: Germany
Experienced Contributor
i can do some maitanance.. concerning documentation, there isn't actually that much.

1) The Interface is the same as used from the Ctrl::TimerCallback in CtrlCore

2) To use it one does *not* need CtrlCore anymore, simply Core and Timer, where the application has a Timer instance.

3) should keep in mind, that it's a timer *queue* other things wont get to execution, until a current task is finished, and the timer queue can check whether time has come for the next task.

4) because of 3), the timing is not as accurate as maybe desired and can have "timer glitches/jitter", depending on work load..

5) favorite use is to schedule some *non*-timing-critical work for "somwhere-around-in-the-future".

6) for timing critical stuff, consider using OS native timer means, for WIN32 SetTimer (in windowing environment, using WM_TIMER callback) or CreateWaitableTimer for windowing-independant stuff, or even QueryPerformanceCounter. for Linux/Unix/Posix settimer function, but for linux there is a lot anyway.

thats basicly all
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Virtual functions versus callbacks
Next Topic: PostCallback executes 2 at once?
Goto Forum:
  


Current Time: Tue Aug 26 17:26:28 CEST 2025

Total time taken to generate the page: 0.05431 seconds