summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2009-10-09 23:07:56 +0000
committer Couriersud <couriersud@users.noreply.github.com>2009-10-09 23:07:56 +0000
commitd05969d5fc830f143adafe080bbae05515cf5aa2 (patch)
tree4b049b32199ce68a805a8e472b1f559f4ab62052
parent15534ae68b71a6853f5aa83f75b281e72e358316 (diff)
Fix bug introduced with profiling changes
-rw-r--r--src/emu/sound/discrete.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/sound/discrete.c b/src/emu/sound/discrete.c
index 581f86d580a..00219911caa 100644
--- a/src/emu/sound/discrete.c
+++ b/src/emu/sound/discrete.c
@@ -320,26 +320,26 @@ INLINE void step_nodes_in_list(const linked_list_entry *list)
if (EXPECTED(!profiling))
{
- osd_ticks_t last = get_profile_ticks();
-
for (entry = list; entry != NULL; entry = entry->next)
{
node_description *node = (node_description *) entry->ptr;
- node->run_time -= last;
+ /* Now step the node */
(*node->step)(node);
- last = get_profile_ticks();
- node->run_time += last;
}
}
else
{
+ osd_ticks_t last = get_profile_ticks();
+
for (entry = list; entry != NULL; entry = entry->next)
{
node_description *node = (node_description *) entry->ptr;
- /* Now step the node */
+ node->run_time -= last;
(*node->step)(node);
+ last = get_profile_ticks();
+ node->run_time += last;
}
}
}