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

Time calculators

metron9metron9 Posts: 1,100
edited 2006-11-12 05:25 in General Discussion
Anyone have a link to a windows calculator that has the ability to input processor clock speed, clock cycles used, and output the number of mS, uS or nS


example: 20MHZ clock divided by 20,000 cycles = 1mS instead or 1,000 because I have a hard time thinking about small numbers.

When I want to know how long a pause routine will take if it takes 756 cycles at 20mhz

I take 20,000,000 divide by 756 = 26,455.026455......

I wold rather see xx uS

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Think outside the BOX!

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-11-09 15:29
    That 26.455.02 etcetera is cycles per second -- just use x -1 and it is 37.8 microseconds.

    I have a RPN calculator on my Palm Zire and it has three outputs: Traditonal Floating Point, Engineering, and Scientific.
    Engineering Output keeps everything to 10x3, 10x6 or 10x-3, 10x-6 and so on. I suspect that is the best you can do.

    Look for a 'shareware' calculator that you can test.It also does HH.MM.SS calculators and much more.
    Try www.nthlab.com if you have a Palm or other PDA.

    The Chinese drive me nuts as everything is in 4s. 10,0000 equals one hundred thousand. One million is 10,0000,0000.
    Recently there was a huge stock market disaster as an order from the U.S.A was placed and discover to be off by a factor of 10.
    The broker tried to buy 10 times more stock than the customer wanted.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • UnsoundcodeUnsoundcode Posts: 1,532
    edited 2006-11-12 00:06
    Hi metron, I had a little fun doing this, it's not perfect but check it out.

    Jeff T.
    exe
    295K
    CPS.exe 294.8K
  • metron9metron9 Posts: 1,100
    edited 2006-11-12 05:25
    When originally posted this I decided on the drive to work to use realbasic to make a calculator exactly as you have made it. Course by the time I got home from work I just never got around to doing it. Thanks, it's a handy tool, I like it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Think outside the BOX!
Sign In or Register to comment.