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

Поиск
Список
Период
Сортировка
От Hannu Krosing
Тема Re: What is a typical precision of gettimeofday()?
Дата
Msg-id CAMT0RQT_kaQK=xVtxPihSjPEsEq2TiPrpoLAu_5HpLp68VwWxA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: What is a typical precision of gettimeofday()?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Wed, Jul 3, 2024 at 10:03 AM Tom Lane <tgl@sss.pgh.pa.us> wrote:
Keep in mind also that instr_time.h does not pretend to provide
> real time --- the clock origin is arbitrary.  But these results
> do give me additional confidence that gettimeofday() should be
> good to the microsecond on any remotely-modern platform.

The only platform I have found where the resolution is only a
microsecond is RISC-V ( https://www.sifive.com/boards/hifive-unmatched
)

Everywhere else it seems to be much more precise.

--
Hannu



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