sim ticks should be the number of elapsed ticks, not curTick

--HG--
extra : convert_revision : 709753255e3e0425940b49e5df0271105935f3d4
This commit is contained in:
Nathan Binkert
2004-07-23 00:24:24 -04:00
parent 4f8612e0cf
commit 75a2b149ee

View File

@@ -80,6 +80,12 @@ statElapsedTime()
return elapsed();
}
Tick
statElapsedTicks()
{
return curTick - startTick;
}
SimTicksReset simTicksReset;
void
@@ -105,7 +111,7 @@ InitSimStats()
;
simTicks
.scalar(curTick)
.functor(statElapsedTicks)
.name("sim_ticks")
.desc("Number of ticks simulated")
;