Re: What is a typical precision of gettimeofday()?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: What is a typical precision of gettimeofday()?
Дата
Msg-id 900154.1752002988@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: What is a typical precision of gettimeofday()?  (Andrey Borodin <x4mmm@yandex-team.ru>)
Список pgsql-hackers
Andrey Borodin <x4mmm@yandex-team.ru> writes:
>> On 8 Jul 2025, at 23:07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> The fact that the clock tick is about 40ns is extremely
>> obvious in this presentation.

> FWIW while working on UUID v7 Masahiko found that if we try to read real time with clock_gettime(CLOCK_REALTIME,)
measurementis truncated to microseconds. 

Yeah.  Bear in mind that instr_time.h uses CLOCK_MONOTONIC_RAW on
macOS, so that's what we're looking at here.

            regards, tom lane



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