bug-time
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Time documentation indicates measuring in Kilo-bytes when actually measu


From: Ian Bertolacci
Subject: Time documentation indicates measuring in Kilo-bytes when actually measuring in Kibi-bytes.
Date: Fri, 10 Jul 2020 16:41:05 -0700

All,
I believe the documentation for time (including comments in the source) are inaccurate regarding the units used for measurements of memory size.

From the current documentation [1] it would seem that kilo-bytes (1000 bytes).
However, from experimentation [2] and reading the code [3,4,5,6] it appears that time is measuring in kibi-bytes (1024 bytes).

Measuring with either unit is fine in my opinion, but the documentation needs to be accurate.
While some individuals may disagree on their personal and conversational usage on kilo-/kibi-bytes, it is an established standard [7], and being off by ~2% is significant when the memory volumes being measured are large, as they are for me.

Am I correct in my assessment, or am I missing something?
Can we change the documentation to the correct units?
Thanks!
-Ian J. Bertolacci

[1] https://git.savannah.gnu.org/cgit/time.git/tree/doc/time.texi#n244
[2] https://stackoverflow.com/questions/61392725/kilobytes-or-kibibytes-in-gnu-time
[3] https://git.savannah.gnu.org/cgit/time.git/tree/src/rusage-kb.h#n41
[4] https://git.savannah.gnu.org/cgit/time.git/tree/src/rusage-kb.c#n50
[5] https://git.savannah.gnu.org/cgit/time.git/tree/src/rusage-kb.c#n57
[6] https://git.savannah.gnu.org/cgit/time.git/tree/src/time.c#n421
[7] https://en.wikipedia.org/wiki/ISO/IEC_80000#Information_science_and_technology

reply via email to

[Prev in Thread] Current Thread [Next in Thread]