4 ms·A portable way to do this could be with sigtimedwait or sigwait plus sigpending or multi-threading.by agapon 3y agoA portable way to do this could be with sigtimedwait or sigwait plus sigpending or multi-threading.