Re: Use CLOCK_MONOTONIC_COARSE for instr_time when available

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Use CLOCK_MONOTONIC_COARSE for instr_time when available
Дата
Msg-id 1817878.1743044982@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Use CLOCK_MONOTONIC_COARSE for instr_time when available  (杨江华 <yjhjstz@gmail.com>)
Ответы Re: Use CLOCK_MONOTONIC_COARSE for instr_time when available
Re: Use CLOCK_MONOTONIC_COARSE for instr_time when available
Список pgsql-hackers
=?UTF-8?B?5p2o5rGf5Y2O?= <yjhjstz@gmail.com> writes:
> This patch modifies the instr_time.h header to prefer CLOCK_MONOTONIC_COARSE
> when available.

As far as I know, our usage of instr_time really needs the highest
resolution available, because we are usually trying to measure pretty
short intervals.  You say that this patch reduces execution time,
and I imagine that's true ... but I wonder if it doesn't do so at
the cost of totally destroying the reliability of the output numbers.

            regards, tom lane



В списке pgsql-hackers по дате отправления: