diff options
author | Carl Worth <cworth@cworth.org> | 2006-08-31 11:02:20 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2006-08-31 11:02:20 -0700 |
commit | b9f629d54239c43eef4746293bcffd58ada442f2 (patch) | |
tree | 671f2ac1317389c079f3b1f736ad08b9034318ae /perf/paint.c | |
parent | 13bcba68ae6f0d29b82def09e7a6e356266dc2e7 (diff) | |
download | cairo-b9f629d54239c43eef4746293bcffd58ada442f2.tar.gz |
perf: Don't require a separate counter from the timer for perf loops.
Diffstat (limited to 'perf/paint.c')
-rw-r--r-- | perf/paint.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/perf/paint.c b/perf/paint.c index 41983da7a..ce4da7d5a 100644 --- a/perf/paint.c +++ b/perf/paint.c @@ -41,13 +41,12 @@ void paint (cairo_t *cr, int width, int height) { bench_timer_t timer; - long count; - PERF_LOOP_INIT (timer, count); + PERF_LOOP_INIT (timer); { cairo_paint (cr); } - PERF_LOOP_FINI (timer, count); + PERF_LOOP_FINI (timer); - printf ("Rate: %g\n", timing_result (&timer)); + printf ("Rate: %g\n", PERF_LOOP_RATE (timer)); } |