[Qt5-feedback] Coarse timers

Alejandro Exojo suy at badopi.org
Sat Jun 4 11:54:46 CEST 2011


El Viernes, 3 de Junio de 2011, Kishore escribió:
> There was a blog post once about making QTimer more efficient by making it
> coarser somewhat shared between instances. What are the plans for this?
> 
> IMHO, most common applications do not require even the kind of precision
> that QTimer currently offers (but does not guarantee). If necessary
> another specialized class could be provided for precision.
> 
> It would allow us to create applications with several timers but not worry
> about waking up the CPU more often than necessary.

If I recall properly, Android has a timer class that is for applications that 
require some scheduled polling each 15 minutes, for example. That kind of 
timer groups the wakeup of some tasks at the same point, so it maximizes the 
time spent with idle CPU and idle wifi/data connection.

But I feel that this kind of feature is not doable without cooperation of the 
underlying system (otherwise how could two Qt applications cooperate without 
knowing about each other?), so I doubt is doable in a cross platform way. :-(

-- 
Alex (a.k.a. suy) | GPG ID 0x0B8B0BC2
http://barnacity.net/ | http://disperso.net


More information about the Qt5-feedback mailing list