• David G Andersen's avatar
    Added SPIN_OK option to force it to simply spin waiting on the socket. · ea1817c2
    David G Andersen authored
    This improves our granularity to the range I'm interested in, but at
    the expense of maxing out a CPU.
    Remove -DSPIN_OK from the CFLAGS line in the makefile if you don't
    want this behavior.  Note that this only happens if you're attempting
    sleeps of < 1second.  If your sleeps are longer than that, the code
    will just use the 10ms timers and figure you're getting time target
    hits within 1% anyway.
delay.c 8.13 KB