Linux-kernel mailing list archive 1998-42,: Re: ARMS WAVING!!! Proposal to fix /proc dainbrammage.

# Re: ARMS WAVING!!! Proposal to fix /proc dainbrammage.

Linus Torvalds (torvalds@transmeta.com)
Fri, 23 Oct 1998 14:23:50 -0700 (PDT)

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Miquel van Smoorenburg: "Re: ARMS WAVING!!! Proposal to fix /proc dainbrammage."
- Previous message: Olivier Galibert: "Re: ARMS WAVING!!! Proposal to fix /proc dainbrammage."

On Fri, 23 Oct 1998, Perry Harrington wrote:
> >
> > Yes. Some of the stuff already does this (not microseconds, but look at
> > "uptime" for example.
>
> Noted, however this is only accurate to 1/100th of a second.

However, please also note that it should be possible to easily just make
the accuracy arbitrary. It's printed out in a format that is meant to be
scannable by "%f", so if you want to make it contain a few hundred
significant digits then you could..

Always having microsecond resolution is a bad idea. Because something is
bound to come along that wants nanoseconds. So if you just basically say
that any fractional amount should always be printed out as a floating
point number, then you're fine.

(Obviously you don't actually want to use fp math inside the kernel:
printing out numbers in a fp format does _not_ imply using actual fp
arithmetic. The code does it all with integer arithmetic right now).

Linus

-
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/

- Next message: Miquel van Smoorenburg: "Re: ARMS WAVING!!! Proposal to fix /proc dainbrammage."
- Previous message: Olivier Galibert: "Re: ARMS WAVING!!! Proposal to fix /proc dainbrammage."