Society of Robots - Robot Forum
Software => Software => Topic started by: flokos 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?
-
The command millis()
http://www.arduino.cc/en/Reference/Millis (http://www.arduino.cc/en/Reference/Millis)
-
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...
-
Call it when you enter and exit the function. Take the difference.
-
Thanks for the reply....