summaryrefslogtreecommitdiff
path: root/perf/paint.c
diff options
context:
space:
mode:
Diffstat (limited to 'perf/paint.c')
-rw-r--r--perf/paint.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/perf/paint.c b/perf/paint.c
index 5c00e5c0..c4233df4 100644
--- a/perf/paint.c
+++ b/perf/paint.c
@@ -40,10 +40,15 @@ paint_alpha_setup (cairo_t *cr, int width, int height)
void
paint (cairo_t *cr, int width, int height)
{
- PERF_LOOP_INIT;
+ bench_timer_t timer;
+ long count;
+
+ PERF_LOOP_INIT (timer, count);
{
cairo_paint (cr);
iterations++;
}
- PERF_LOOP_FINI;
+ PERF_LOOP_FINI (timer, count);
+
+ printf ("Rate: %g\n", timing_result (&timer));
}