Peter Geoghegan <pg@heroku.com> writes:
> I've heard that clock_gettime() with CLOCK_REALTIME_COARSE, or with
> CLOCK_MONOTONIC_COARSE can have significantly lower overhead than
> gettimeofday().
It can, but it also has *much* lower precision, typically 1ms or so.
regards, tom lane