Basic Stamp Timer Function
RonK
Posts: 7
I am trying to find out how long a Basic Stamp 2e subroutine that is doing a lot of work is taking.? Are there any functions to do that? The Basic Stamp has internal clocks. Is there any way to access those values.
What I would like to do is when I enter a Subroutine print out as the first line of code a Debug statement with a time that it started. And just before the RETURN statement from the Subroutine use another Debug statement to print out an ending time.
Any help or suggestions would be greatly appreciated.
Thanks . . . Ron Karpf
What I would like to do is when I enter a Subroutine print out as the first line of code a Debug statement with a time that it started. And just before the RETURN statement from the Subroutine use another Debug statement to print out an ending time.
Any help or suggestions would be greatly appreciated.
Thanks . . . Ron Karpf
Comments
http://www.emesystems.com/BS2speed.htm
and higher up, with more information:
http://www.emesystems.com/BS2index.htm
The answer is yes. Clock cycles, or any other measure of start-to-finish for a subroutine would be helpful.
Thanks.
... Ron Karpf