Need little help with maths - Timer based application


Results 1 to 3 of 3

Threaded View

  1. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    30 minutes = 1,800 seconds:
    1800 / 0.524295 = 3433

    1 hour = 3,600 seconds:
    3600 / 0.524295 = 6866

    1.5 hours = 10299
    2 hours = 13732

    And maybe it's somewhere else in the program that wasn't posted, but ..
    It looks like you are adjusting the value in delayset according to the buttons.
    Then comparing the delay time against delaystop in the handler.

    Oh, and delaystop is both a variable and the Label to the Interrupt handler.
    <br>

    hth,
    Last edited by Darrel Taylor; - 19th June 2010 at 18:12. Reason: delaystop label
    DT

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts