[Qt-interest] Monotonic clock in Qt?
Thiago Macieira
thiago at kde.org
Tue May 4 23:53:18 CEST 2010
Em Terça-feira 4. Maio 2010, às 21.46.22, Nikos Chantziaras escreveu:
> 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).
Do system calls or use QElapsedTimer.
And besides Debian, most distros will be shipping Qt 4.7 by the end of the
year.
--
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
Senior Product Manager - Nokia, Qt Development Frameworks
PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100504/40339dd9/attachment.bin
More information about the Qt-interest-old
mailing list