[mythtv-commits] mythtv branch master updated by danielk. v0.27-pre2-549-g94cbafa

Git Repo Owner noreply at mythtv.org
Mon Jan 21 18:34:59 UTC 2013


The branch, master has been updated on the
mythtv repository by gitolite user danielk.
       via  94cbafa832d42245bec279fd56ca4416d75c2ce2 (commit)
       via  440573f3febdc8009b74ae1b2366aa7d518a15a7 (commit)
      from  d493cec60a5d4ccca64dd7d31871d5c2fd048390 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 94cbafa832d42245bec279fd56ca4416d75c2ce2
Author:    Daniel Thor Kristjansson <danielk at cuymedia.net> at Mon, 21 Jan 2013 13:25:30 -0500
Committer: Daniel Thor Kristjansson <danielk at cuymedia.net> at Mon, 21 Jan 2013 13:30:51 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=94cbafa832d42245bec279fd56ca4416d75c2ce2

Add unit testing for MythTimer. Refs #11255.



commit 440573f3febdc8009b74ae1b2366aa7d518a15a7
Author:    Daniel Thor Kristjansson <danielk at cuymedia.net> at Mon, 21 Jan 2013 12:58:32 -0500
Committer: Daniel Thor Kristjansson <danielk at cuymedia.net> at Mon, 21 Jan 2013 13:29:42 -0500
URL:       http://code.mythtv.org/cgit/mythtv/commit/?id=440573f3febdc8009b74ae1b2366aa7d518a15a7

Convert MythTimer to use QElapsedTimer instead of QTime.
Fixes #11255.

We initially created MythTimer because QTime isn't monotonic
and we wanted a wrapper that assured that time wouldn't march
backward too much. As of Qt 4.7 there is a timer available
which is monotonic on most systems. This converts MythTimer
to use this new timer.

The first version of this new wrapper was written by
Rune Petersen for the efficiency gains this has over
QTime which does an expensive DST conversion internally.
I added back a timer restart in the elapsed() method
since QElapsedTimer doesn't always provide a monotonic
timer, and I implemented the addMSecs() method so this
could be used in all instances where the original
MythTimer was used.



-----------------------------------------------------------------------

Summary of changes:
 mythtv/libs/libmythbase/libmythbase.pro         |    2 +-
 mythtv/libs/libmythbase/mythtimer.cpp           |  101 ++++++++++++++++++++
 mythtv/libs/libmythbase/mythtimer.h             |   36 ++++----
 mythtv/libs/libmythbase/test/.gitignore         |    1 +
 mythtv/libs/libmythbase/test/test_mythtimer.cpp |    3 +
 mythtv/libs/libmythbase/test/test_mythtimer.h   |  112 +++++++++++++++++++++++
 mythtv/libs/libmythbase/test/test_mythtimer.pro |   14 +++
 7 files changed, 250 insertions(+), 19 deletions(-)
 create mode 100644 mythtv/libs/libmythbase/mythtimer.cpp
 create mode 100644 mythtv/libs/libmythbase/test/.gitignore
 create mode 100644 mythtv/libs/libmythbase/test/test_mythtimer.cpp
 create mode 100644 mythtv/libs/libmythbase/test/test_mythtimer.h
 create mode 100644 mythtv/libs/libmythbase/test/test_mythtimer.pro

-- 



More information about the mythtv-commits mailing list