On Wed, Feb 22, 2023 at 03:42:00PM +0100, Fons Adriaensen wrote:
BTW, just using
sem_timedwait ()
in a RT thread I get
Min ~ 60 us
Max ~ 135 us
Average ~ 74 us.
And using
clock_nanosleep (CLOCK_MONOTONIC, TIMER_ABSTIME, &T, 0);
in a RT thread I get
Min ~ 5 us
Max ~ 105 us
Average ~ 23 us
No need for any special libraries...
Ciao,
--
FA