PDA

View Full Version : QTime restart



jhowland
8th October 2008, 20:05
I am having a problem with QTime's restart function. I call it regularly--unfortuantely, every now and then--and at arbitrary times--it returns an elapsed time of 1 whole day plus the actual interval.

QT Assistant says

"If the system's clock setting has been changed since the last time start() or restart() was called, the result is undefined. This can happen when daylight savings time is turned on or off"

I am running an ntp client on my machine, and it may be changing the time on me...does anybody else have any experience with this issue, and what did you do about it?

thanks

Jonathan Howland

maverick_pol
8th October 2008, 20:18
What about 're-creating' the Qtime object and using start() again; if there is a problem with restart; I must admit I haven't checked it yet.

Kacper