channellist: add timing debug output

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@168 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
seife
2010-01-16 14:44:57 +00:00
parent d564aed264
commit cbcc10c498

View File

@@ -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 ?? */ /* 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() int CChannelList::show()
{ {
/* temporary debugging stuff */
struct timeval t1, t2;
gettimeofday(&t1, NULL);
neutrino_msg_t msg; neutrino_msg_t msg;
neutrino_msg_data_t data; neutrino_msg_data_t data;
bool actzap = 0; bool actzap = 0;
@@ -467,6 +471,10 @@ int CChannelList::show()
updateEvents(); updateEvents();
paint(); 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 oldselected = selected;
int zapOnExit = false; int zapOnExit = false;
bool bShowBouquetList = false; bool bShowBouquetList = false;