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.
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help