summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/schedule.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-11-11 16:31:18 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-11-11 16:31:18 +0100
commitd1dc775f9b686170416fbca6a615fbea108d0ff1 (patch)
tree64c9053aa0ac1c0d9b15a5d628d5a2ca8e296db8 /src/emu/schedule.cpp
parent7c7e62455e91e9eae51577cd06c4fd38858a3d50 (diff)
Some cleanups and init fixes with help of ReSharper C++ (nw)
Diffstat (limited to 'src/emu/schedule.cpp')
-rw-r--r--src/emu/schedule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/schedule.cpp b/src/emu/schedule.cpp
index 565d027cfc4..43a26ebb1fd 100644
--- a/src/emu/schedule.cpp
+++ b/src/emu/schedule.cpp
@@ -490,9 +490,9 @@ void device_scheduler::timeslice()
exec->m_totalcycles += ran;
// update the local time for this CPU
- attotime delta(0, exec->m_attoseconds_per_cycle * ran);
- assert(delta >= attotime::zero);
- exec->m_localtime += delta;
+ attotime deltatime(0, exec->m_attoseconds_per_cycle * ran);
+ assert(deltatime >= attotime::zero);
+ exec->m_localtime += deltatime;
LOG((" %d ran, %d total, time = %s\n", ran, (INT32)exec->m_totalcycles, exec->m_localtime.as_string(PRECISION)));
// if the new local CPU time is less than our target, move the target up, but not before the base