Lines Matching refs:diff
107 static int bench_uprobe_format__default_fprintf(const char *name, const char *unit, u64 diff, FILE *fp)
110 s64 diff_to_baseline = diff - baseline,
111 diff_to_previous = diff - previous;
114 printed += fprintf(fp, " %14s: %'" PRIu64 " %ss", "Total time", diff, unit);
123 printed += fprintf(fp, "\n\n %'.3f %ss/op", (double)diff / (double)loops, unit);
131 baseline = diff;
136 previous = diff;
145 u64 diff;
161 diff = end.tv_sec * NSEC_PER_SEC + end.tv_nsec - (start.tv_sec * NSEC_PER_SEC + start.tv_nsec);
162 diff /= NSEC_PER_USEC;
166 bench_uprobe_format__default_fprintf(name, unit, diff, stdout);
170 printf("%" PRIu64 "\n", diff);