Closed 9000h closed 2 years ago
Sounds good to me, PR?
I did found some alternatives what do you think is better? or a more complete one like http://www.streamboard.tv/oscam/browser/trunk/oscam-time.c#L198
I think the one from oscam is more complete and handling corner cases
@9000h feel free to create a PR
I like to suggest replaceing usleep with nonosleep and use a util function like:
According to usleep() manpage: POSIX.1-2001 declares this function obsolete; use nanosleep(2) instead. POSIX.1-2008 removes the specification of usleep().
///////////// select(0, NULL, NULL, NULL, &ts); is the lazy method wine is using :-) and it's the same on windows (req. winsocket) //////////// the other option would be