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/