[Qt-interest] Monotonic clock in Qt?

Pau Garcia i Quiles pgquiles at elpauer.org
Wed May 5 13:12:35 CEST 2010


On Wed, May 5, 2010 at 12:06 PM, Thiago Macieira <thiago at kde.org> wrote:
> 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.

Ugh, yeah. I saw "monotonic clock" and got confused. We have had our
own nightmares with QTimer on Windows and thought the OP was suffering
from the same issues.

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)




More information about the Qt-interest-old mailing list