[mythtv-commits] Ticket #11255: Change MythTimer to use monotonic clock
MythTV
noreply at mythtv.org
Sat Nov 24 18:51:51 UTC 2012
#11255: Change MythTimer to use monotonic clock
------------------------------------+----------------------------------
Reporter: Rune Petersen <rune@…> | Type: Patch - Feature
Status: new | Priority: minor
Milestone: unknown | Component: MythTV - General
Version: 0.26-fixes | Severity: medium
Keywords: performance | Ticket locked: 0
------------------------------------+----------------------------------
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.
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11255>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list