Page 1 of 1
How can I get the duration of an operation??
Posted: Wed Oct 22, 2008 1:03 pm
by Alberto_82
Hi to everybody,
I need to calculate the execution time of some instructions, but I can\'t find a simple way to obtain it. Isn\'t there any function like \"get_time\" or something like that??
Thanks in advance,
/Alberto
Re:How can I get the duration of an operation??
Posted: Thu Oct 23, 2008 8:09 am
by paolo.gai
Depends on the architecture... are you referring to the FLEX boards?
Re:How can I get the duration of an operation??
Posted: Thu Oct 23, 2008 8:28 am
by Alberto_82
Yes, on the Flex board..
But I solved the problem using TMR1 register... All worked fine!
Re:How can I get the duration of an operation??
Posted: Thu Oct 23, 2008 8:34 am
by paolo.gai
Ok... fine!
Just take a look in ee/pkg/mcu/microchip_dspic/inc/ee_mcu.h
there are a few functions already made to read the timer.
Ciao,
PJ
Re:How can I get the duration of an operation??
Posted: Thu Oct 23, 2008 8:55 am
by Alberto_82
Thank you, now I read the code...
Alberto