UUGRN

Re: Mikrosekundengenaues Sleep und Scheduler

From
Michael Lestinsky <michael.lestinsky@...>
Date
Am 17.06.'03 schrieb Michael Lestinsky:
> t.tv_nsec = sleep_usec;
^^^^^^^^^^
Hoppla. Mit einem Faktor 1000 dadran macht das schon etwas mehr Sinn.

nanosleep() Should 0, did 12, off by: 12
nanosleep() Should 1, did 1, off by: 0
nanosleep() Should 10, did 10, off by: -0
nanosleep() Should 100, did 100, off by: 0
nanosleep() Should 1000, did 998, off by: -2
nanosleep() Should 10000, did 18775, off by: 8775
nanosleep() Should 100000, did 109978, off by: 9978
nanosleep() Should 999999, did 1009941, off by: 9942

Bye
Michael

--
Michael Lestinsky                   Max-Planck-Institut fuer Kernphysik
michael.lestinsky@...     Saupfercheckweg 1; 69117 Heidelberg
Phone +49 6221 516-504              http://www.mpi-hd.mpg.de

Thread

In reply to: Re: Mikrosekundengenaues Sleep und Scheduler Michael Lestinsky <michael.lestinsky@...>

Follow-ups: