Re: [Tinyos-help] Time function

2020-12-28 Thread Eric Decker
actually this has already been done in the tp-freeforall tree (
https://github.com/tp-freeforall/prod)


It is implemented in
https://github.com/tp-freeforall/prod/blob/tp-master/tos/system/SchedulerBasicP.nc

it is in memory logging.  there are some gdb functions that deal with this
available at...
https://github.com/tp-freeforall/prod/blob/tp-master/tools/99_gdb/gdb_tasks.py

you need to be using GDB talking to a gdb remote stub implemented by a JTAG
probe to the device under test (DUT).  such as a segger jlink.


On Sun, Dec 27, 2020 at 6:41 AM Jeremy J  wrote:

> There are no built in functions. you will have to manually snapshot the
> timer count at the startand stop  of a task
>
> On Sun, Dec 27, 2020 at 8:59 AM Anita Patil 
> wrote:
>
>> Is there any function in nesC to compute time taken by a task processing?
>>
>> In Timer.nc interface there are functions Iike getnow(), gett0() ,
>> getdt(), startperiodic() etc. But I didn't get any function to compute time
>> taken by a task processing. I.e to start and stop the timer respectively
>> before posting a task and after posting a task.
>>
>> Thank you in advance.
>> ___
>> Tinyos-help mailing list
>> Tinyos-help@millennium.berkeley.edu
>> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Time function

2020-12-27 Thread Jeremy J
There are no built in functions. you will have to manually snapshot the
timer count at the startand stop  of a task

On Sun, Dec 27, 2020 at 8:59 AM Anita Patil 
wrote:

> Is there any function in nesC to compute time taken by a task processing?
>
> In Timer.nc interface there are functions Iike getnow(), gett0() ,
> getdt(), startperiodic() etc. But I didn't get any function to compute time
> taken by a task processing. I.e to start and stop the timer respectively
> before posting a task and after posting a task.
>
> Thank you in advance.
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help