Searched refs:TIME_UNITS_PER_SEC (Results 1 – 8 of 8) sorted by relevance
42 #define TIME_UNITS_PER_SEC 1000000 macro57 t *= TIME_UNITS_PER_SEC; in RATEEST_get_time()60 t *= TIME_UNITS_PER_SEC/1000; in RATEEST_get_time()63 t *= TIME_UNITS_PER_SEC/1000000; in RATEEST_get_time()77 if (tmp >= TIME_UNITS_PER_SEC) in RATEEST_print_time()78 printf(" %.1fs", tmp / TIME_UNITS_PER_SEC); in RATEEST_print_time()79 else if (tmp >= TIME_UNITS_PER_SEC/1000) in RATEEST_print_time()80 printf(" %.1fms", tmp / (TIME_UNITS_PER_SEC / 1000)); in RATEEST_print_time()144 if (interval <= (1 << info->interval) * (TIME_UNITS_PER_SEC / 4)) in RATEEST_final_check()172 local_interval = (TIME_UNITS_PER_SEC << (info->interval + 2)) / 4; in __RATEEST_print()
41 return tc_core_time2tick(maxidle*(1<<ewma_log)*TIME_UNITS_PER_SEC); in tc_cbq_calc_maxidle()56 return tc_core_time2tick(offtime*TIME_UNITS_PER_SEC); in tc_cbq_calc_offtime()
61 return tc_core_time2tick(TIME_UNITS_PER_SEC*((double)size/rate)); in tc_calc_xmittime()66 return ((double)rate*tc_core_tick2time(ticks))/TIME_UNITS_PER_SEC; in tc_calc_xmitsize()208 clock_factor = (double)clock_res / TIME_UNITS_PER_SEC; in tc_core_init()
239 t *= TIME_UNITS_PER_SEC; in get_time()242 t *= TIME_UNITS_PER_SEC/1000; in get_time()245 t *= TIME_UNITS_PER_SEC/1000000; in get_time()259 if (tmp >= TIME_UNITS_PER_SEC) in print_time()260 snprintf(buf, len, "%.1fs", tmp/TIME_UNITS_PER_SEC); in print_time()261 else if (tmp >= TIME_UNITS_PER_SEC/1000) in print_time()262 snprintf(buf, len, "%.1fms", tmp/(TIME_UNITS_PER_SEC/1000)); in print_time()
181 double lim = opt.rate.rate*(double)latency/TIME_UNITS_PER_SEC + buffer; in tbf_parse_opt()183 double lim2 = opt.peakrate.rate*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt()266 …latency = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->rate.rate) - tc_core_tick2time(qopt->buffe… in tbf_print_opt()268 …double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)qopt->peakrate.rate) - tc_core_tick2time(qop… in tbf_print_opt()
370 if (dmax != 0 && ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax) > rate) { in hfsc_get_sc2()375 sc->m1 = ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax); /* in bps */ in hfsc_get_sc2()384 sc->d = tc_core_time2ktime(ceil(dmax - umax * TIME_UNITS_PER_SEC / rate)); in hfsc_get_sc2()
29 if (A <= (1<<est->interval)*(TIME_UNITS_PER_SEC/4)) in tc_setup_estimator()
7 #define TIME_UNITS_PER_SEC 1000000 macro