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 #25380 is a reply to message #25323] Sat, 20 February 2010 00:44 Go to previous message
koldo is currently offline  koldo
Messages: 3443
Registered: August 2008
Senior Veteran
kohait00 wrote on Wed, 17 February 2010 09:32

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


Hello Kohait

Now it is included in Bazaar Smile


Best regards
IƱaki
 
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 14:23:12 CEST 2025

Total time taken to generate the page: 0.05480 seconds