Searched refs:TIME_UNITS_PER_SEC (Results 1 – 8 of 8) sorted by relevance
48 #define TIME_UNITS_PER_SEC 1000000 macro63 t *= TIME_UNITS_PER_SEC; in RATEEST_get_time()66 t *= TIME_UNITS_PER_SEC/1000; in RATEEST_get_time()69 t *= TIME_UNITS_PER_SEC/1000000; in RATEEST_get_time()83 if (tmp >= TIME_UNITS_PER_SEC) in RATEEST_print_time()84 printf(" %.1fs", tmp / TIME_UNITS_PER_SEC); in RATEEST_print_time()85 else if (tmp >= TIME_UNITS_PER_SEC/1000) in RATEEST_print_time()86 printf(" %.1fms", tmp / (TIME_UNITS_PER_SEC / 1000)); in RATEEST_print_time()118 if (udata->interval <= (1 << info->interval) * (TIME_UNITS_PER_SEC / 4)) in RATEEST_final_check()146 local_interval = (TIME_UNITS_PER_SEC << (info->interval + 2)) / 4; in __RATEEST_print()
42 return tc_core_time2tick(maxidle*(1<<ewma_log)*TIME_UNITS_PER_SEC); in tc_cbq_calc_maxidle()57 return tc_core_time2tick(offtime*TIME_UNITS_PER_SEC); in tc_cbq_calc_offtime()
62 return tc_core_time2tick(TIME_UNITS_PER_SEC*((double)size/(double)rate)); in tc_calc_xmittime()67 return ((double)rate*tc_core_tick2time(ticks))/TIME_UNITS_PER_SEC; in tc_calc_xmitsize()226 clock_factor = (double)clock_res / TIME_UNITS_PER_SEC; in tc_core_init()
287 t *= TIME_UNITS_PER_SEC; in get_time()290 t *= TIME_UNITS_PER_SEC/1000; in get_time()293 t *= TIME_UNITS_PER_SEC/1000000; in get_time()307 if (tmp >= TIME_UNITS_PER_SEC) in print_time()308 snprintf(buf, len, "%.1fs", tmp/TIME_UNITS_PER_SEC); in print_time()309 else if (tmp >= TIME_UNITS_PER_SEC/1000) in print_time()310 snprintf(buf, len, "%.1fms", tmp/(TIME_UNITS_PER_SEC/1000)); in print_time()
205 double lim = rate64*(double)latency/TIME_UNITS_PER_SEC + buffer; in tbf_parse_opt()208 double lim2 = prate64*(double)latency/TIME_UNITS_PER_SEC + mtu; in tbf_parse_opt()308 latency = TIME_UNITS_PER_SEC*(qopt->limit/(double)rate64) - tc_core_tick2time(qopt->buffer); in tbf_print_opt()310 double lat2 = TIME_UNITS_PER_SEC*(qopt->limit/(double)prate64) - tc_core_tick2time(qopt->mtu); in tbf_print_opt()
366 if (dmax != 0 && ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax) > rate) { in hfsc_get_sc2()371 sc->m1 = ceil(1.0 * umax * TIME_UNITS_PER_SEC / dmax); /* in bps */ in hfsc_get_sc2()380 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