From: Enlightenment S. <no-...@en...> - 2009-03-22 12:40:23
|
Log: Fix timer debug stuff. Author: kwo Date: 2009-03-22 05:40:20 -0700 (Sun, 22 Mar 2009) New Revision: 39622 Modified: trunk/E16/e/src/timers.c Modified: trunk/E16/e/src/timers.c =================================================================== --- trunk/E16/e/src/timers.c 2009-03-22 12:22:39 UTC (rev 39621) +++ trunk/E16/e/src/timers.c 2009-03-22 12:40:20 UTC (rev 39622) @@ -104,15 +104,15 @@ if (in_time < 0.) /* No negative in-times */ in_time = 0.; - if (EDebug(EDBUG_TYPE_TIMERS)) - Eprintf("TimerAdd %p: func=%p data=%p: %8.3f\n", timer, - timer->func, timer->data, in_time); - timer->func = func; timer->in_time = in_time; timer->at_time = GetTime() + in_time; timer->data = data; + if (EDebug(EDBUG_TYPE_TIMERS)) + Eprintf("TimerAdd %p: func=%p data=%p: %8.3f\n", timer, + timer->func, timer->data, in_time); + _TimerSet(timer); /* Add to timer queue */ return timer; @@ -180,8 +180,8 @@ Timer *qp; for (qp = timer; qp; qp = qp->next) - Eprintf("TimersRun - pend %p: func=%p data=%p: %8.3lf\n", timer, - timer->func, timer->data, timer->at_time - t); + Eprintf("TimersRun - pend %p: func=%p data=%p: %8.3lf\n", qp, + qp->func, qp->data, qp->at_time - t); } if (timer) |