Lines Matching refs:fraction
1897 int fraction; in timestamp() local
1903 fraction = Lsp->pr_tstamp.tv_nsec - Cp->basetime.tv_nsec; in timestamp()
1904 if (fraction < 0) { in timestamp()
1906 fraction += NANOSEC; in timestamp()
1909 fraction = (fraction + 50000) / 100000; in timestamp()
1910 if (fraction >= (MILLISEC * 10)) { in timestamp()
1912 fraction -= (MILLISEC * 10); in timestamp()
1916 (void) printf("%2d.%4.4d\t", seconds, fraction); in timestamp()
1920 int ofraction = pri->fraction; in timestamp()
1923 pri->fraction = fraction; in timestamp()
1925 fraction -= ofraction; in timestamp()
1926 if (fraction < 0) { in timestamp()
1928 fraction += (MILLISEC * 10); in timestamp()
1930 (void) printf("%2d.%4.4d\t", seconds, fraction); in timestamp()
1935 fraction = Lsp->pr_stime.tv_nsec - pri->syslast.tv_nsec; in timestamp()
1937 if (fraction < 0) { in timestamp()
1939 fraction += NANOSEC; in timestamp()
1942 fraction = (fraction + 50000) / 100000; in timestamp()
1943 if (fraction >= (MILLISEC * 10)) { in timestamp()
1945 fraction -= (MILLISEC * 10); in timestamp()
1947 (void) printf("%2d.%4.4d\t", seconds, fraction); in timestamp()