Its very likely that what you are trying to time happens in fractions of a
second so small they won't show up in sim_time_string.

Use sim_time() and then divide the result by sim_ticks_per_sec()

You probably will get an extremely small number.

Chad

On 10/1/07, Liron Elmaleh <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm trying to measure the time that a task is running.
> For this issue I'm printing a message using the function
> sim_time_string() in the begining & the end of the runTask function, but
> even when I'm using a task with a big loop in it, I still see that the
> difference is 0.
> How can I get the real time of the task's run?
>
> Liron.
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Chad @ Home
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to