static double tick_in_usec = 1;
static double clock_factor = 1;
-int tc_core_time2big(unsigned int time)
+static unsigned int tc_core_time2tick(unsigned int time)
{
- __u64 t = time;
-
- t *= tick_in_usec;
- return (t >> 32) != 0;
-}
-
-
-unsigned int tc_core_time2tick(unsigned int time)
-{
- return time*tick_in_usec;
+ return time * tick_in_usec;
}
unsigned int tc_core_tick2time(unsigned int tick)
{
- return tick/tick_in_usec;
+ return tick / tick_in_usec;
}
unsigned int tc_core_time2ktime(unsigned int time)
};
-int tc_core_time2big(unsigned time);
-unsigned tc_core_time2tick(unsigned time);
unsigned tc_core_tick2time(unsigned tick);
unsigned tc_core_time2ktime(unsigned time);
unsigned tc_core_ktime2time(unsigned ktime);
print_rate(use_iec, t, key, fmt, rate);
}
-char *sprint_ticks(__u32 ticks, char *buf)
-{
- return sprint_time(tc_core_tick2time(ticks), buf);
-}
-
int get_size_and_cell(unsigned int *size, int *cell_log, char *str)
{
char *slash = strchr(str, '/');
void print_devname(enum output_type type, int ifindex);
char *sprint_tc_classid(__u32 h, char *buf);
-char *sprint_ticks(__u32 ticks, char *buf);
char *sprint_linklayer(unsigned int linklayer, char *buf);
void print_tcstats_attr(FILE *fp, struct rtattr *tb[],