qnxNews <firstname.lastname@example.org> wrote:
i am using qnx 4.25 with photon 1.13. sometimes when i shutdown photon
it gives message :
“Photon : Adjusting the time offset by XXX seconds”
the XXX could be a positive or a negative number
what is the meaning of this message and what causes the photon to adjust the
Photon has a timer that’s used for generating timer events, mouse
repeats, and a few other kinds of events. When this timer goes off,
Photon compares the current system time with the time the timer was
expected to go off. If it looks seriously wrong (the current time is
either too early or more than 60 seconds too late), Photon assumes that
the system time has been changed.
The “time offset” that the message is talking about is used to convert
the current system time to the number of milliseconds since Photon
started (used mainly for event timestamps). The message you’re seeing
is basically a warning telling you that since Photon at some point
wasn’t able to rely on the system clock to find out how much time had
elapsed since the timer went off, the millisecond timer had to be be
resynchronized with the system clock, which may have caused a minor
inaccuracy, especially if you have processes running at a high priority
that might have prevented Photon from processing the timer proxy for a
while. But unless you have anything in your system that relies on
Photon event timestamps being accurate, this shouldn’t cause any
is related to setting date from photon ? if yes, does photon has its own
date setting ?
If you changed the date while running Photon, this is expected. If you
didn’t, it might mean that you have high-priority processes preventing
Photon from handling timer events correctly.
Wojtek Lerch QNX Software Systems Ltd.