Check remaining time during send/poll loop. Use clock_gettime if available.
clock_gettime(CLOCK_MONOTONIC, ×pec) will be durable across time changes. If it's not available, or the call has specified that that level of accuracy is not needed, it will use regular gettimeofday.
Loading
Please sign in to comment