projects
/
gem5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge zizzer:/bk/m5 into zeep.eecs.umich.edu:/z/saidi/work/m5
[gem5.git]
/
sim
/
stat_control.cc
diff --git
a/sim/stat_control.cc
b/sim/stat_control.cc
index 9a4313a614cac0aaf8693db2c55ed5282f09ca93..8a8eaa7907e3926fd9ba69788c30aa9f004ed912 100644
(file)
--- 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")
;