-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Robin Gareus schrieb:
usleep(
iTick-( passedTime-startTime ) );
AFAIR usleep is not exact! - did you
echo 1024 > /proc/sys/dev/rtc/max-user-freq ?
try sth like:
void select_sleep (int usec) {
fd_set fd;
int max_fd=0;
struct timeval tv = { 0, 0 };
tv.tv_sec = 0; tv.tv_usec = usec;
FD_ZERO(&fd);
if (remote_en) {
max_fd=remote_fd_set(&fd);
}
select(max_fd, &fd, NULL, NULL, &tv);
}
Interesting timing approach.
But I can't find remote_en and remote_fd_set in the man pages.
What does these arguments stand for?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFF8w15VC26eJ+o0+0RAsGVAJ0WRpmImWy+MZaAsSha4x6Rgt9RWgCeLkiF
4BwEtaUL9OREI+MhSVGe/Yg=
=MriT
-----END PGP SIGNATURE-----