lkml.org 
[lkml]   [1998]   [Oct]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ARMS WAVING!!! Proposal to fix /proc dainbrammage.
On Fri, Oct 23, 1998 at 12:24:22PM -0700, Perry Harrington wrote:
> Time formats:
>
> It seems to me that expressing the time constants in /proc would be
> as simple as:
>
> <seconds>.<microseconds>
>
> If EVER there is a need for processor clock tick, or kernel task switch
> interval information, it can be added as a well thought out interface
> LATER.
>
> Linus has already expressed this as a sane format that is independent of
> the HZ value, etc. The precision of the usec is directly proportional
> to the HZ value. You don't change the format of the data to get more
> precision; hence, it's portable.

You may want to use seconds.nanoseconds instead. It stills fit in a
32bit integer and we already have timers with sub-microsecond accuracy
(the TSC in particular). Also, POSIX's struct timespec already uses
nanoseconds.

OG.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:45    [W:0.216 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site