Menu

#19 add timers

1.0
accepted
None
2013-07-29
2013-07-10
No

define portable timers, probably similar to those in the first edition (ticks, seconds, rtc).

then implement them with setitimer() on POSIX.

Q: is it reasonable to use 1 ms timer resolution on OS X/Ubuntu/Cygwin?

Discussion

  • Liviu Ionescu (ilg)

    TimerTicks (based on TimerBase) implemented.

    POSIX implementation prepared, but not completed.

     
    • Liviu Ionescu (ilg)

      POSIX implementation functional, two tests (sleep and sleepstress) ok.

       
  • Liviu Ionescu (ilg)

    Q: is it reasonable to use 1 ms timer resolution on OS X/Ubuntu/Cygwin?

    A: Generally yes.
    On OS X more than 10K signals/second can be processed.
    On Ubuntu running in a virtual machine a few thousands are ok.
    On Fedora the 1000/sec are ok, but with some delays.

     

Log in to post a comment.

MongoDB Logo MongoDB