[Qt-interest] Monotonic clock in Qt?

Diego Iastrubni diegoiast at gmail.com
Wed May 5 07:32:15 CEST 2010


On Tue, May 4, 2010 at 10: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.
>
> Qt 4.7 introduces QElapsedTimer for this.  But I can't use Qt 4.7; it
> will be a while (probably in range of *years*) until Linux distros ship
> Qt 4.7 by default, especially Debian-based ones (which is still using Qt
> 4.4).
>

Then backport QElaspsedTimer to your Qt version and do runtime checking of
the Qt version in use.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100505/f4c33753/attachment.html 


More information about the Qt-interest-old mailing list