[Interest] QTimer and Qt::PreciseTimer
Thiago Macieira
thiago.macieira at intel.com
Sat Jul 29 22:34:07 CEST 2017
On Saturday, 29 July 2017 13:21:45 PDT Joshua Grauman wrote:
> Sorry, I'm seeing new things here.
>
> I see under Linux that clock_gettime(), has options for CLOCK_MONOTONIC,
> and also CLOCK_MONOTONIC_RAW. CLOCK_MONOTONIC "is affected by the
> incremental adjustments performed by adjtime and NTP." So it seems that
> would be best? Which does QElapsedTimer use?
It uses CLOCK_MONOTONIC.
The adjustments that it's talking about are the incremental adjustments to
account for hardware drift. The _RAW is the one read from the RTC.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest
mailing list