[Qt-interest] Monotonic clock in Qt?
Nikos Chantziaras
realnc at arcor.de
Tue May 4 21:46:22 CEST 2010
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).
Is there any solution that will work with Qt versions 4.6 and lower?
I'd hate to do kernel system calls, since there's no way to probe for
that in qmake (I'd have to switch to GNU Autoconf).
More information about the Qt-interest-old
mailing list