sys/timerfd.h missing

Kurt Hackenberg kh at panix.com
Tue Jul 13 03:55:38 UTC 2021


On 2021/07/12 22:23, Thomas D. Dean wrote:

> I want to:
> 
> start timer  /* >> loop execution time */
> do something
> while(1)
>    wait timer
>    start timer   /* >> loop execution time */
>    do something
>    do something else


How about the C library function sleep()?

Or for less than a second, usleep(3), nanosleep(2), or 
clock_nanosleep(2). You might also have a use for clock_gettime(2). All 
of those except usleep() are Posix.


More information about the freebsd-questions mailing list