From cbcc10c4980d99b1f101b6bff53ad165749c9fbb Mon Sep 17 00:00:00 2001 From: seife Date: Sat, 16 Jan 2010 14:44:57 +0000 Subject: [PATCH] channellist: add timing debug output git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@168 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/gui/channellist.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 109d41cc2..d0731cbb3 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -428,6 +428,10 @@ int CChannelList::exec() /* return: >= 0 to zap, -1 on cancel, -3 on list mode change, -4 list edited, -2 zap but no restore old list/chan ?? */ int CChannelList::show() { + /* temporary debugging stuff */ + struct timeval t1, t2; + gettimeofday(&t1, NULL); + neutrino_msg_t msg; neutrino_msg_data_t data; bool actzap = 0; @@ -467,6 +471,10 @@ int CChannelList::show() updateEvents(); paint(); + gettimeofday(&t2, NULL); + fprintf(stderr, "CChannelList::show(): %llu ms to paint channellist\n", + ((t2.tv_sec * 1000000ULL + t2.tv_usec) - (t1.tv_sec * 1000000ULL + t1.tv_usec)) / 1000ULL); + int oldselected = selected; int zapOnExit = false; bool bShowBouquetList = false;