Shop OBEX P1 Docs P2 Docs Learn Events
BS2 and clock — Parallax Forums

BS2 and clock

CaipiCaipi Posts: 11
edited 2006-02-21 22:53 in BASIC Stamp
Hello,

Is there a way to program the BS2 to measure time? The goal is to measure how fast the program is. Is there an internal clock that I can start and stop?

Thx

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-02-21 22:39
    Caipi -

    None of the PBASIC Stamps have an internal clock which is accessible. External timing (by whatever means) is the only way you will be able to determine total program duration.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-02-21 22:53
    You could use the "Logic Analyzer" hardware, and 'ping' a pin in your program, to measure how long stuff takes. Personally, I got the ANT-8 USB-based logic analyzer for this purpose. It's a little pricey, but not bad, and works extremely well. The major problem I have with it is that the hardware for it is so small, it's easy to misplace.
Sign In or Register to comment.