Author Topic: For how long a funcion is running in arduino duemilanove.  (Read 1222 times)

0 Members and 1 Guest are viewing this topic.

Offline flokosTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
For how long a funcion is running in arduino duemilanove.
« on: May 30, 2010, 12:31:42 PM »
Hi i have an arduino duemilanove and i want to see for how long a function is running in ms .
Can this happen?and how?

Offline Razor Concepts

  • Supreme Robot
  • *****
  • Posts: 1,856
  • Helpful? 53
Re: For how long a funcion is running in arduino duemilanove.
« Reply #1 on: May 30, 2010, 12:42:45 PM »

Offline flokosTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: For how long a funcion is running in arduino duemilanove.
« Reply #2 on: May 30, 2010, 12:45:15 PM »
Quote
Description

Returns the number of milliseconds since the Arduino board began running the current program. This number will overflow (go back to zero), after approximately 50 days.

This one shows the time the arduino is running and not the time a specific function is running...

Offline cyberfish

  • Robot Overlord
  • ****
  • Posts: 163
  • Helpful? 3
Re: For how long a funcion is running in arduino duemilanove.
« Reply #3 on: May 30, 2010, 12:47:00 PM »
Call it when you enter and exit the function. Take the difference.

Offline flokosTopic starter

  • Jr. Member
  • **
  • Posts: 17
  • Helpful? 0
Re: For how long a funcion is running in arduino duemilanove.
« Reply #4 on: May 30, 2010, 12:58:20 PM »
Thanks for the reply....

 


Get Your Ad Here