X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=metrics.c;h=1ebdac75399c9b66b33dd2a5ebd8cc1e8ad1faa0;hb=60da7cb02ac89aadc0566fda60613042c0c136a7;hp=39ed5bacf2f9733010b5564893e76b9f7b0be1a1;hpb=02c39fbdaa29d62a8e7b8d223f62ccd08d4782ee;p=fips diff --git a/metrics.c b/metrics.c index 39ed5ba..1ebdac7 100644 --- a/metrics.c +++ b/metrics.c @@ -37,6 +37,9 @@ typedef struct counter typedef struct program_metrics { + /* This happens to also be the index into the + * ctx->program_metrics array currently + */ unsigned id; double ticks; } program_metrics_t; @@ -135,7 +138,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); } }