Thread (32 messages) 32 messages, 2 authors, 2021-12-23

Re: [PATCH v1 01/25] drivers/net: introduce a new PMD driver

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-12-22 16:55:28

On Wed, 22 Dec 2021 08:54:00 +0800
Yanling Song [off-list ref] wrote:
quoted
If all you want is jiffie accuracy,  you could use
CLOCK_MONOTONIC_COARSE.
  
I did not get your point: CLOCK_MONOTONIC is more accurate than
CLOCK_MONOTONIC_COARSE, right?
CLOCK_MONOTONIC ends up using the TSC counter and values in the
shared page (VDSO) to compute time accurately.

CLOCK_MONOTONIC_COARSE is faster and good enough if you only
want ms accuracy. It just reads a value from shared page
and avoids the TSC instruction.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help