Re: gettimeofday is at the end of its usefulness?

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Florian Weimer <fw@deneb.enyo.de>
Cc: Haribabu Kommi <kommi.haribabu@gmail.com>, PostgreSQL-development <pgsql-hackers@postgresql.org>
Date: 2017-01-13T20:54:24Z
Lists: pgsql-hackers
Florian Weimer <fw@deneb.enyo.de> writes:
> glibc has some test cases which fail because clock_gettime gives
> inconsistent results.  This has been fixed in current kernels, but I
> don't know if everyone uses them.

hmm, for which clock IDs?

			regards, tom lane


Commits

  1. Use clock_gettime(), if available, in instr_time measurements.