summaryrefslogtreecommitdiff
path: root/perf/paint.c
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-08-31 10:27:20 -0700
committerCarl Worth <cworth@cworth.org>2006-08-31 10:29:52 -0700
commit739c4767673ace4f566d395d770924617ddebaff (patch)
treef3fed24c7ea597fa987bbe657fa80bd9b3c163a7 /perf/paint.c
parent3d279da6214d43de05eba4af381e451cec3cfd72 (diff)
Initial hookup of Vlad's timer/alarm code
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));
}