Lines Matching refs:triptime
876 long triptime = 0; in gather_statistics() local
889 triptime = tv->tv_sec * 1000000 + tv->tv_usec; in gather_statistics()
890 if (triptime < 0) { in gather_statistics()
891 fprintf(stderr, "Warning: time of day goes back (%ldus), taking countermeasures.\n", triptime); in gather_statistics()
892 triptime = 0; in gather_statistics()
900 tsum += triptime; in gather_statistics()
901 tsum2 += (long long)triptime * (long long)triptime; in gather_statistics()
902 if (triptime < tmin) in gather_statistics()
903 tmin = triptime; in gather_statistics()
904 if (triptime > tmax) in gather_statistics()
905 tmax = triptime; in gather_statistics()
907 rtt = triptime*8; in gather_statistics()
909 rtt += triptime-rtt/8; in gather_statistics()
954 if (triptime >= 100000) in gather_statistics()
955 printf(" time=%ld ms", triptime/1000); in gather_statistics()
956 else if (triptime >= 10000) in gather_statistics()
957 printf(" time=%ld.%01ld ms", triptime/1000, in gather_statistics()
958 (triptime%1000)/100); in gather_statistics()
959 else if (triptime >= 1000) in gather_statistics()
960 printf(" time=%ld.%02ld ms", triptime/1000, in gather_statistics()
961 (triptime%1000)/10); in gather_statistics()
963 printf(" time=%ld.%03ld ms", triptime/1000, in gather_statistics()
964 triptime%1000); in gather_statistics()