projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f8612e
)
sim ticks should be the number of elapsed ticks, not curTick
author
Nathan Binkert
<binkertn@umich.edu>
Fri, 23 Jul 2004 04:24:24 +0000
(
00:24
-0400)
committer
Nathan Binkert
<binkertn@umich.edu>
Fri, 23 Jul 2004 04:24:24 +0000
(
00:24
-0400)
--HG--
extra : convert_revision :
709753255e3e0425940b49e5df0271105935f3d4
sim/stat_control.cc
patch
|
blob
|
history
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")
;