Messages in this thread | | | Date | Fri, 23 Oct 1998 22:37:15 +0200 | From | Olivier Galibert <> | Subject | Re: 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/
| |