lkml.org 
[lkml]   [2022]   [Oct]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: Question about ktime_get_mono_fast_ns() non-monotonic behavior
On Wed, Oct 12, 2022 at 8:07 PM John Stultz <jstultz@google.com> wrote:
>
> On Wed, Oct 12, 2022 at 8:02 PM John Stultz <jstultz@google.com> wrote:
> > On Mon, Sep 26, 2022 at 2:18 PM Yosry Ahmed <yosryahmed@google.com> wrote:
> > So I think it reasonable to say its bounded by approximately 2 *
> > NSEC_PER_SEC/HZ +/- 11%.
>
> Sorry, this should be 2*NSEC_PER_SEC/HZ * 0.11

Thanks so much for the detailed response :)

IIUC this error bound is in ns. So on a 2 GHz cpu the bound is 0.11 ns
(essentially 0)? I feel like I miscalculated, this error bound is too
good to be true.

>
> thanks
> -john

\
 
 \ /
  Last update: 2022-10-14 02:05    [W:0.210 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site