View Full Version : Basic Stamp Timer Function

11-17-2009, 12:49 PM
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

11-17-2009, 02:50 PM
When you say time do you mean clock cycles?

11-17-2009, 06:26 PM
You may find this helpful:


and higher up, with more information:


11-17-2009, 09:36 PM
Skylight as the question "When you say time do you mean clock cycles?"

The answer is yes. Clock cycles, or any other measure of start-to-finish for a subroutine would be helpful.


... Ron Karpf