[Piglit] [PATCH] cmake: Detect if system has POSIX clocks
Ian Romanick
idr at freedesktop.org
Wed Oct 16 18:24:29 CEST 2013
On 10/14/2013 04:37 PM, Jordan Justen wrote:
> Chad,
>
> I wanted a similar feature, but I was also thinking of adding a
> piglit-util function (piglit_get_microseconds). I think it should be
> easy to port this function to windows.
>
> I also had the cmake parts a little different, but I don't really have
> a preference on that.
>
> http://cgit.freedesktop.org/~jljusten/piglit/commit/?id=d1a9c3fb
I'd rather use a POSIX function and provide an implementation of that
function on platforms that don't already support it. We already do that
for a number of C99 functions.
See also:
http://stackoverflow.com/questions/5404277/porting-clock-gettime-to-windows
More information about the Piglit
mailing list