I am measuring real-world time as provided by the operating system (the current 
process execution time).
   
  This is a code from our profiling function that saves the time to print it 
later as tracing results:
   
  struct timespec tp;
  // get high precision timestamp, and save
  clock_gettime(CLOCK_PROCESS_CPUTIME_ID,&tp);
  incallIndex[RetAddressCount] = i;
  incallSeconds[RetAddressCount] = tp.tv_sec;
  incallNanosecs[RetAddressCount] = tp.tv_nsec;
   
  Mustafa


Philip Levis <[EMAIL PROTECTED]> wrote:  
On Apr 6, 2008, at 6:25 PM, Mustafa Hammad wrote:
> I am measuring the simulator time which is not matching the real 
> word time. Is this different caused by a problem in TOSSIM?

What I mean is this:

1) Are you measuring real-world time as provided by the operating 
system (e.g., by gettimeofday), or
2) Are you measuring simulation time as provided by sim_time()?

Phil


       
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total 
Access, No Cost.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to