On Jun 14, 2008, at 3:19 AM, m.khezri wrote:
> Hello,
> I want to measure task execution time in Tossim ,
> I write a dummy task and use this code for measuring:
> .
> ..
> implementation
> {
> task void LongTask();
> event void Timer.fired()
> {
> dbg("Log", "LongTask() before run : %f\n",(double) sim_time() /
> sim_ticks_per_sec());
> post LongTask();
> ....
> }
> task void LongTask()
> {
> // long dummy code here
> dbg("Log", "LongTask() after run : %f\n",(double) sim_time() /
> sim_ticks_per_sec());
> }
>
> it gives me the same time
>
> I would greatly appreciate any help.
TOSSIM doesn't model code execution time. Since it's a discrete event
simulator, code appears as if it runs infinitely fast.
Phil
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help