Thread (32 messages) read the whole thread 32 messages, 2 authors, 2021-12-23

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

From: Yanling Song <hidden>
Date: 2021-12-23 08:11:11

On Wed, 22 Dec 2021 08:55:22 -0800
Stephen Hemminger [off-list ref] wrote:
On Wed, 22 Dec 2021 08:54:00 +0800
Yanling Song [off-list ref] wrote:
quoted
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.
OK. Got it. Thanks. Will be included in the next version.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help