Opened 11 years ago
Closed 11 years ago
Last modified 11 years ago
#11255 closed Patch - Feature (fixed)
Change MythTimer to use monotonic clock
Reported by: | Owned by: | danielk | |
---|---|---|---|
Priority: | minor | Milestone: | 0.27 |
Component: | MythTV - General | Version: | 0.26-fixes |
Severity: | medium | Keywords: | performance |
Cc: | Ticket locked: | no |
Description
Currently MythTimer? is implemented using QTime which relies on system time and timezone conversion have the following problems:
- imprecise if system time is changed
- imprecise if if a change to/from DST happens
The patch uses QElapsedTimer instead of QTime. QElapsedTimer relies on monotonic clock, "get ticks" or similar.
Known problems with this patch:
- QElapsedTimer requires QT 4.7 (what is currently the minimum requirement?)
- addMSecs() cannot be implemented with QElapsedTimer, but then again the current implementation is a no-op.
This patch reduces CPU usage by ~5% on a 700MHz Cortex-A9 when recording DVB HD content.
Attachments (1)
Change History (7)
Changed 11 years ago by
Attachment: | mythtv_mythtimer_use_monotonic_clock.patch added |
---|
comment:1 Changed 11 years ago by
Owner: | set to danielk |
---|---|
Status: | new → assigned |
comment:2 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:6 Changed 11 years ago by
Milestone: | unknown → 0.27 |
---|
Note: See
TracTickets for help on using
tickets.
In 440573f3febdc8009b74ae1b2366aa7d518a15a7/mythtv: