Skip to content
  • Lennart Poettering's avatar
    util: make time formatting a bit smarter · 2fa4092c
    Lennart Poettering authored
    Instead of outputting "5h 55s 50ms 3us" we'll now output "5h
    55.050003s". Also, while outputting the accuracy is configurable.
    
    Basically we now try use "dot notation" for all time values > 1min. For
    >= 1s we use 's' as unit, otherwise for >= 1ms we use 'ms' as unit, and
    finally 'us'.
    
    This should give reasonably values in most cases.
    2fa4092c