https://bugs.kde.org/show_bug.cgi?id=392476

            Bug ID: 392476
           Summary: Digital Clock is persistently late by up to one second
           Product: plasmashell
           Version: 5.12.4
          Platform: Kubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Digital Clock
          Assignee: plasma-b...@kde.org
          Reporter: kde....@prolinux.com
  Target Milestone: 1.0

Add a Digital Clock plasmoid to the panel and enable seconds display. Run
"xclock -digital -update 1" and compare the two clocks. xclock will advance the
seconds precisely when the system clock ticks, but odds on the Digital Clock
will be delayed by up to a second. The exact offset fluctuates, and is
different each time seconds display is disabled and then re-enabled. This also
affects the time at which the Digital Clock advances minutes.

xclock makes sure it updates on time in an elegant way: subtract the current
time from the time the next update is due, and wait that number of
microseconds. See xclock/Clock.c:waittime() for details.

Digital Clock doesn't seem to do this. It seems to wait to be painted, and then
prints the current time accurate to the second. That will always create this
bias.

Qt::formatTime() does seem to support milliseconds using the .zzz expression,
but scheduling updates may be more challenging. If the API allows it, Digital
Clock should be modified to request updates at the correct time, not just let
them happen.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to