Hi Pablo, 

The current time is accessible via the curTick()
function. The printing of the stat happens in src/sim/stat_control.cc.
simTicks (which prints out as sim_ticks) is a functor that calls
statElapsedTicks() which ultimately subtracts curTIck() from startTick.


I'm not quite sure what the second part of your question is after. But
if you have some events you want to time you can use curTick() to get
the before/after times. 

ali 

On 10.04.2012 02:49, Pablo Ortiz wrote:


> Hello all,
> 
> At the end of an execution of gem5, a statistic
denoting the amount of time that was actually simulated is produced. How
is this figure determined? I ask the list because sifting through the
source for a few hours did not yield any useful answers. 
> 
> I would
also like to know if it would be possible to determine how much time has
been simulated in gem5 after each discrete event execution. I give my
thanks in advance if there is a kind soul out there willing to answer my
queries.
> 
> Cheers,
> Pablo
>
_______________________________________________
> gem5-dev mailing
list
> [email protected]
> http://m5sim.org/mailman/listinfo/gem5-dev

 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to