Announcement

Collapse
No announcement yet.

sys_SetTimer()

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • sys_SetTimer()

    Hello all. Just a quick question to clarify something.
    sys_SetTimer(timernum, value);

    value:Countdown period in milliseconds.

    but then in description
    Maximum timeout period is 65535 milliseconds or 65.535 seconds.
    I know that without doing anything what ever you put in value is considered ms.

    so the question is, how do I select if that number is ms or sec?

    Thanks for reading me.

  • #2
    OH no does it mean 65point535 seconds? OFC it does.. right? saw it the moment i posted it :S

    Comment


    • #3
      Yeah, that's what it means, you need to have another counter, within a timer interrupt that decrements and rearms the timer to get longer delays
      Mark

      Comment


      • #4
        Just a point about this. In DIABLO16 Internal Functions available in this site, the function: "2.13.3. etTimer(timernum, value)" gives this example:

        "Example sys_SetTimer(TIMER5, 3600); //Set Timer5 for 1 hour."

        It would be 3600 ms which is 3.6 seconds, so, this is not an hour. Am I wrong?

        Comment


        • #5
          Hi michaelwheel,

          Yes you are correct, the example is only for 3600 milliseconds or 3.6 seconds
          We will revise the internal function manual with this, Thank you.

          Comment


          • #6
            Not been revised yet?

            Comment

            Working...
            X