diff options
Diffstat (limited to 'src/sim')
-rw-r--r-- | src/sim/stat_control.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sim/stat_control.cc b/src/sim/stat_control.cc index f2c7c8a2e..ad1d4a9e4 100644 --- a/src/sim/stat_control.cc +++ b/src/sim/stat_control.cc @@ -65,7 +65,7 @@ struct SimTicksReset : public Callback { void process() { - statTime.set(); + statTime.setTimer(); startTick = curTick(); } }; @@ -73,9 +73,11 @@ struct SimTicksReset : public Callback double statElapsedTime() { - Time now(true); + Time now; + now.setTimer(); + Time elapsed = now - statTime; - return elapsed(); + return elapsed; } Tick |