1 2 3 4 5 6 7 8 9 10
/* ISC license. */ #include <skalibs/tai.h> #include <skalibs/iopause.h> void deepsleepuntil (tain_t const *deadline, tain_t *stamp) { iopause_fd x ; while (tain_less(stamp, deadline)) iopause_stamp(&x, 0, deadline, stamp) ; }