Lines Matching +full:fast +full:- +full:read
5 #define DEFAULT_SYS_PRECISION -99
23 * changes as we read it repeatedly.
39 * ELSE this machine has resolution < time to read clock
47 * chance of MINSTEP-1 other processes getting in and calling gettimeofday
56 /* Don't use "1" as some *other* process may read too*/
75 for (i = - --minsteps; i< MAXLOOPS; i++) { in default_get_resolution()
77 diff = tp.tv_usec - last; in default_get_resolution()
79 if (diff > MINSTEP) if (minsteps-- <= 0) break; in default_get_resolution()
89 " (Boy this machine is fast ! %d loops without a step)\n", in default_get_resolution()
91 diff = 1; /* No STEP, so FAST machine */ in default_get_resolution()
95 " (The resolution is less than the time to read the clock -- Assume 1us)\n"); in default_get_resolution()
96 diff = 1; /* time to read clock >= resolution */ in default_get_resolution()
98 for (i=0, val=HUSECS; val>0; i--, val >>= 1) if (diff >= val) return i; in default_get_resolution()
99 printf(" (Oh dear -- that wasn't expected ! I'll guess !)\n"); in default_get_resolution()
149 diff = tp.tv_usec - last; in default_get_precision()
163 printf(" (Boy this machine is fast ! usec was %ld)\n", in default_get_precision()
165 val = MINSTEP; /* val <= MINSTEP; fast machine */ in default_get_precision()
168 for (i = 0; diff > val; i--) in default_get_precision()