Home     Company     Products     Services     Community     Download     Store
    [Home arrow Community arrow Forum ]
Community
Community
Login Form





Lost Password?
No account yet? Register
Evidence Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:How can I get the duration of an operation?? (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Re:How can I get the duration of an operation??
#240
Alberto_82 (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Gender: Male alberto_savioli@libero.it Location: Mantova Birthdate: 1982-12-09
How can I get the duration of an operation?? 2 Months, 2 Weeks ago Karma: 1  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#241
paolo.gai (Admin)
Admin
Posts: 116
graph
User Offline Click here to see the profile of this user
Re:How can I get the duration of an operation?? 2 Months, 2 Weeks ago Karma: 4  
Depends on the architecture... are you referring to the FLEX boards?
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#242
Alberto_82 (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Gender: Male alberto_savioli@libero.it Location: Mantova Birthdate: 1982-12-09
Re:How can I get the duration of an operation?? 2 Months, 2 Weeks ago Karma: 1  
Yes, on the Flex board..
But I solved the problem using TMR1 register... All worked fine!
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#243
paolo.gai (Admin)
Admin
Posts: 116
graph
User Offline Click here to see the profile of this user
Re:How can I get the duration of an operation?? 2 Months, 2 Weeks ago Karma: 4  
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
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#244
Alberto_82 (User)
Junior Boarder
Posts: 25
graphgraph
User Offline Click here to see the profile of this user
Gender: Male alberto_savioli@libero.it Location: Mantova Birthdate: 1982-12-09
Re:How can I get the duration of an operation?? 2 Months, 2 Weeks ago Karma: 1  
Thank you, now I read the code...

Alberto
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Evidence S.r.l. - PIVA: 01638690501
Via Carducci 64/A - Ghezzano - Pisa - Italy
Privacy Policy