Esempio n. 1
0
static void item_done(struct item_data *data,
	const struct p_benchmark_specification *spec, const char *name)
{
	assert(name != NULL);
	assert(name[0] != 0);

	platform_clock_t now = platform_clock();
	(void)printf("%s size: %zu duration: ", name, spec->current_size);
	platform_print_duration(data->start, now);
	(void)printf("\n");
}
Esempio n. 2
0
static void item_done(struct item_data *data,
                      const struct p_bench_specification *spec,
                      const char *name)
{
    assert(name != NULL);
    assert(name[0] != 0);

    bench_printf("%s, %" PRIu64 ", ", name, (uint64_t) spec->current_size);
    platform_print_duration(data->start, data->end);
    bench_printf("\n");
}