From ce27513d12ab21ecef7cf92015de7885e870f2c7 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 27 Aug 2013 11:43:40 -0700 Subject: [PATCH] Report what the actual units are. "When the timer query timer is finally stopped, the elapsed time (in nanoseconds) is written to the corresponding query object as the query result value" --- metrics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics.c b/metrics.c index 39ed5ba..19d5df0 100644 --- a/metrics.c +++ b/metrics.c @@ -135,7 +135,7 @@ print_program_metrics (void) for (i = 0; i < ctx->num_program_metrics; i++) { if (ctx->program_metrics[i].ticks == 0.0) continue; - printf ("Program %d:\t%7.2f mega-ticks\n", + printf ("Program %d:\t%7.2f ms\n", i, ctx->program_metrics[i].ticks / 1e6); } } -- 2.43.0