Lines Matching +full:low +full:- +full:precision
5 #define DEFAULT_SYS_PRECISION -99
16 printf("log2(resolution) = %d, log2(precision) = %d\n", in main()
29 * probably use the "unused" low order bits as a counter (to force time to be
36 * THEN this machine is "counting" with the low order bits
47 * chance of MINSTEP-1 other processes getting in and calling gettimeofday
60 #define MAXLOOPS HUSECS /* Assume precision < .1s ! */
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()
95 " (The resolution is less than the time to read the clock -- Assume 1us)\n"); 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()
112 * has occurred and this amount represents the precision of the clock.
149 diff = tp.tv_usec - last; in default_get_precision()
160 printf("precision = %ld usec after %d loop%s\n", in default_get_precision()
168 for (i = 0; diff > val; i--) in default_get_precision()