[Pixman] RFC: Pixman benchmark CPU time measurement

Bill Spitzak spitzak at gmail.com
Wed Jun 3 07:23:41 PDT 2015

On 06/03/2015 12:36 AM, Pekka Paalanen wrote:
> On Tue, 2 Jun 2015 15:03:01 -0700
> Bill Spitzak <spitzak at gmail.com> wrote:
>> I would have the first call return 0.0 and all the others return the
>> difference between current time and when that first call was done. Then
>> there is no worry about accuracy of floating point. I do not think any
>> callers are interested in the absolute time, only in subtracting two
>> results to get an elapsed time.
> OpenMP threading must be taken into account, but that'd be doable.
> It would indeed allow removing the elapsed() function from my proposal.
> There would be a problem with clock() wrapping around too often, but
> that's an orthogonal issue.

But it would only wrap 72 days after the test started, rather than at 
some random point during the test.

More information about the Pixman mailing list