Lines Matching refs:triptime
871 long triptime = 0; in gather_statistics() local
884 triptime = tv->tv_sec * 1000000 + tv->tv_usec; in gather_statistics()
885 if (triptime < 0) { in gather_statistics()
886 fprintf(stderr, "Warning: time of day goes back (%ldus), taking countermeasures.\n", triptime); in gather_statistics()
887 triptime = 0; in gather_statistics()
895 tsum += triptime; in gather_statistics()
896 tsum2 += (long long)triptime * (long long)triptime; in gather_statistics()
897 if (triptime < tmin) in gather_statistics()
898 tmin = triptime; in gather_statistics()
899 if (triptime > tmax) in gather_statistics()
900 tmax = triptime; in gather_statistics()
902 rtt = triptime*8; in gather_statistics()
904 rtt += triptime-rtt/8; in gather_statistics()
949 if (triptime >= 100000) in gather_statistics()
950 printf(" time=%ld ms", triptime/1000); in gather_statistics()
951 else if (triptime >= 10000) in gather_statistics()
952 printf(" time=%ld.%01ld ms", triptime/1000, in gather_statistics()
953 (triptime%1000)/100); in gather_statistics()
954 else if (triptime >= 1000) in gather_statistics()
955 printf(" time=%ld.%02ld ms", triptime/1000, in gather_statistics()
956 (triptime%1000)/10); in gather_statistics()
958 printf(" time=%ld.%03ld ms", triptime/1000, in gather_statistics()
959 triptime%1000); in gather_statistics()