title: In systemC how do you get the sc_time in the end_of_simulation routine
body: <p>I would like to report what the time is at the end of a simulation.  I thought that I would use the end_of_simulation routine, and just do a sc_timestamp in the routine to do this.  </p>
  
  <p>The problem is that the kernel has terminated before end_of_simulation, and I get a bogus timestamp.</p>
  
  <p>I can't really use a thread to determine this because what pulls me out of the simulation is that all of the threads are waiting on events.  There is no "master thread" that I could just store the timestamp.</p>
  
  <p>any thoughts?</p>