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

Поиск
Список
Период
Сортировка
От Andrey M. Borodin
Тема Re: What is a typical precision of gettimeofday()?
Дата
Msg-id 212C2E24-32CF-400E-982E-A446AB21E8CC@yandex-team.ru
обсуждение исходный текст
Ответ на Re: What is a typical precision of gettimeofday()?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: What is a typical precision of gettimeofday()?
Re: What is a typical precision of gettimeofday()?
Список pgsql-hackers

> On 2 Jul 2024, at 22:20, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> It sure looks like this is exact-to-the-nanosecond results,
> since the modal values match the overall per-loop timing,
> and there are no zero measurements.

That’s a very interesting result, from the UUID POV!
If time is almost always advancing, using time readings instead of a counter is very reasonable: we have interprocess
monotonicityalmost for free. 
Though time is advancing in a very small steps… RFC assumes that we use microseconds, I’m not sure it’s ok to use 10
morebits for nanoseconds… 

Thanks!


Best regards, Andrey Borodin.


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