On 06/03/2015 12:36 AM, Pekka Paalanen wrote:
On Tue, 2 Jun 2015 15:03:01 -0700
Bill Spitzak <spit...@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.

_______________________________________________
Pixman mailing list
Pixman@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pixman

Reply via email to