Re: [PATCH 1/4] statx: Add a system call to make enhanced file info available

From: One Thousand Gnomes
Date: Mon Nov 21 2016 - 09:30:34 EST


> > increase in timestamp resoultion of at least another 10e-3 is
> > likely....
>
> Is it, though? To be useful, surely you have to be able to jam quite a few
> instructions into a 1ns block, including memory accesses.
>
> Rather than providing:
>
> struct timestamp {
> __s64 seconds;
> __s64 femtoseconds;
> };
>
> which would require 64-bit divisions to get nanosecond timestamps that we do
> actually use, I would lean towards:
>
> struct timestamp {
> __s64 seconds;
> __s32 nanoseconds;
> __s32 femtoseconds;
> };

Which gets silly. The nanosecond world is defined by the speed of light.
Short of someone finding a way to change that digital computing as we
know it today is going to be living in the nanoseconds world. You hit the
point of 'can't measure the difference' before you hit the point of 'can
usefully order things using'

Alan