From: Nathan Binkert Date: Fri, 23 Jul 2004 04:24:24 +0000 (-0400) Subject: sim ticks should be the number of elapsed ticks, not curTick X-Git-Tag: m5_1.0_tutorial~222 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=75a2b149eed1dc9dc9954f32b3a91ee241dc7fca;p=gem5.git sim ticks should be the number of elapsed ticks, not curTick --HG-- extra : convert_revision : 709753255e3e0425940b49e5df0271105935f3d4 --- diff --git a/sim/stat_control.cc b/sim/stat_control.cc index 9a4313a61..8a8eaa790 100644 --- a/sim/stat_control.cc +++ b/sim/stat_control.cc @@ -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") ;