Shop OBEX P1 Docs P2 Docs Learn Events
Processing Time — Parallax Forums

Processing Time

kkaustin812kkaustin812 Posts: 3
edited 2010-08-26 06:33 in BASIC Stamp
Hi!
Could someone explain how to calculate (or calculate and explain) EXACTLY how much time the following loop takes to exectute?

FOR c = 0 TO 1023
PULSOUT 0, 5
PULSIN 0, 1, t
DEBUG CR, DEC t
NEXT

Thanks!

-Austin

Comments

  • FranklinFranklin Posts: 4,747
    edited 2010-08-20 16:53
    There is a wealth of information on This page
  • Mike GreenMike Green Posts: 23,101
    edited 2010-08-21 13:31
    The link given by Franklin is probably the best source of information available on Stamp execution speed, but it won't give you EXACTLY what you say you want. You will be able to approximate the execution time of the loop given input pulse widths, but that's the best you will be able to do.
  • chrisadamchrisadam Posts: 2
    edited 2010-08-26 03:11
    1. How and where do I insert the mandatory Unix system functions i.e. open(), read(), write(), lseek(), close() into the program for it to work?

    2. How and where do I insert the command to read from a given binary .dat file for it to work?

    3. Do I use the rename method as above or the C method:
    "int rename(const char *old, const char *new);

    ________________________________________________________

    Want to get-on Google's first page and loads of traffic to your website? Hire a SEO specialist from Ocean Groups seo specialist
  • Mike GreenMike Green Posts: 23,101
    edited 2010-08-26 05:51
    @chrisadam,
    Did you mean to post your message in a different forum or thread?
  • Kevin WoodKevin Wood Posts: 1,266
    edited 2010-08-26 06:33
    Mike, I think it's spam based on the signature.

    Lately there has been several new posters that ask some sort of out of place question that looks like a legit request for help, but they all have contained spam links in the signatures.
Sign In or Register to comment.