mirror of
https://github.com/holub/mame
synced 2025-04-22 16:31:49 +03:00
small optimization to device_execute_interface::local_time() (nw)
This commit is contained in:
parent
c77aa0643a
commit
5626092c8c
@ -319,14 +319,13 @@ void device_execute_interface::trigger(int trigid)
|
||||
attotime device_execute_interface::local_time() const
|
||||
{
|
||||
// if we're active, add in the time from the current slice
|
||||
attotime result = m_localtime;
|
||||
if (executing())
|
||||
{
|
||||
assert(m_cycles_running >= *m_icountptr);
|
||||
int cycles = m_cycles_running - *m_icountptr;
|
||||
result += cycles_to_attotime(cycles);
|
||||
return m_localtime + cycles_to_attotime(cycles);
|
||||
}
|
||||
return result;
|
||||
return m_localtime;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user