[Tinyos-help] Time measurment in TOSSIM

Chad Metcalf metcalfc at gmail.com
Mon Oct 1 09:06:55 PDT 2007


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 <eliron at cs.huji.ac.il> 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
> Tinyos-help at Millennium.Berkeley.EDU
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Chad @ Home
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20071001/f51e557b/attachment.html


More information about the Tinyos-help mailing list