diff options
author | 2009-10-09 23:07:56 +0000 | |
---|---|---|
committer | 2009-10-09 23:07:56 +0000 | |
commit | d05969d5fc830f143adafe080bbae05515cf5aa2 (patch) | |
tree | 4b049b32199ce68a805a8e472b1f559f4ab62052 /src | |
parent | 15534ae68b71a6853f5aa83f75b281e72e358316 (diff) |
Fix bug introduced with profiling changes
Diffstat (limited to 'src')
-rw-r--r-- | src/emu/sound/discrete.c | 12 |
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; } } } |