[Qt-interest] Monotonic clock in Qt?

Thiago Macieira thiago at kde.org
Wed May 5 12:06:33 CEST 2010


Em Quarta-feira 05 Maio 2010, às 11:47:31, Pau Garcia i Quiles escreveu:
> 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.

QTimer is a completely different beast.

-- 
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/20100505/250e868d/attachment.bin 


More information about the Qt-interest-old mailing list