CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

how to calculate elapse time in second.ms of function

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
cfernandez



Joined: 18 Oct 2003
Posts: 145

View user's profile Send private message

how to calculate elapse time in second.ms of function
PostPosted: Sat Oct 30, 2004 7:49 am     Reply with quote

how to calculate elapse time in seconds.ms of my function. I need to calculate this time for my documentacion. Any know the solution.

Thank you very much!!

Best Regards,
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

View user's profile Send private message Send e-mail

PostPosted: Sat Oct 30, 2004 8:23 am     Reply with quote

If you use the simulator, you can set break points at the start and end and then use the stopwatch under the debugger menu.

Another approach us to toggle a pin during the function and measure the time with an o-scope.
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Sat Oct 30, 2004 3:35 pm     Reply with quote

Another approach is to go through the code in the .LST file and calculate the exact time it takes for the function to complete. Tedious but precise. This link should be of help:

http://www.ccsinfo.com/faq/?30
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group