[Qt-interest] Monotonic clock in Qt?

Pau Garcia i Quiles pgquiles at elpauer.org
Wed May 5 11:47:31 CEST 2010


On Tue, May 4, 2010 at 9:46 PM, Nikos Chantziaras <realnc at arcor.de> wrote:
> I need to do time measurements, and I use QTime for this.
> Unfortunately, QTime is not "solid" for this.  If the system clock gets
> changed, I'm screwed.

Can't you use QTimer for that? On Unix it uses a monotonic clock, on
Windows it counts events. It works fine even if you change the system
time.

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)




More information about the Qt-interest-old mailing list