Print summary timing information at the end of encoder_example runs.
authorRalph Giles <giles@xiph.org>
Wed, 9 Feb 2011 01:45:41 +0000 (01:45 +0000)
committerRalph Giles <giles@xiph.org>
Wed, 9 Feb 2011 01:45:41 +0000 (01:45 +0000)
commit67fe6b35fce23f9030ef47110a6ff7970ef995f1
tree143802407e73d80e6980dd1bfae4256c5e8f2cad
parentfcc3ddd79578531c2f6769e6ebb355438dff3137
Print summary timing information at the end of encoder_example runs.

This is helpful for casual benchmarking and performance comparision.
We use the very portable time.h clock() call and the beginning and
end of the main function and calculate the average rate in millions
of pixels per second and fraction of realtime. Unfortunately clock()
isn't accurate enough to be useful for per-frame statistics.

svn path=/trunk/theora/; revision=17820
examples/encoder_example.c