Previous 199869 Revisions Next

r19589 Sunday 16th December, 2012 at 14:20:45 UTC by Nathan Woods
Added some logging (currently turned off)
[src/emu]schedule.c

trunk/src/emu/schedule.c
r19588r19589
885885   while (m_basetime >= m_quantum_list.first()->m_expire)
886886      m_quantum_allocator.reclaim(m_quantum_list.detach_head());
887887
888   LOG(("timer_set_global_time: new=%s head->expire=%s\n", m_basetime.as_string(), m_timer_list->m_expire.as_string()));
888   LOG(("execute_timers: new=%s head->expire=%s\n", m_basetime.as_string(), m_timer_list->m_expire.as_string()));
889889
890890   // now process any timers that are overdue
891891   while (m_timer_list->m_expire <= m_basetime)
r19588r19589
907907         g_profiler.start(PROFILER_TIMER_CALLBACK);
908908
909909         if (timer.m_device != NULL)
910         {
911            LOG(("execute_timers: timer device %s timer %d\n", timer.m_device->name(), timer.m_id));
910912            timer.m_device->timer_expired(timer, timer.m_id, timer.m_param, timer.m_ptr);
913         }
911914         else if (!timer.m_callback.isnull())
915         {
916            LOG(("execute_timers: timer callback %s\n", timer.m_callback.name()));
912917            timer.m_callback(timer.m_ptr, timer.m_param);
918         }
913919
914920         g_profiler.stop();
915921      }

Previous 199869 Revisions Next


© 1997-2024 The MAME Team