bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#39956: 26.2; improve display of information of M-x list-timers


From: Basil L. Contovounesios
Subject: bug#39956: 26.2; improve display of information of M-x list-timers
Date: Tue, 27 Oct 2020 10:23:33 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> ndame <emacsuser@freemail.hu> writes:
>
>> Generally, the best solution could be to use days, hours, minutes,
>> seconds format, instead of displaying floating point values.
>>
>> E.g this line
>>
>>              195.08     5.00 savehist-autosave
>>
>> could be more readable like this
>>
>>              3m 15.08s     5m  savehist-autosave
>>
>> Or this one
>>
>>        26479.43  1440.00 run-hooks
>>
>> like this
>>
>>        7h 21m 19.43s  1d run-hooks
>
> Yes, that would be nicer.  Anybody else got an opinion here?  And does
> Emacs have a nice format-seconds-human-readable function somewhere?

What about format-seconds?

  (format-seconds "%hh %mm %z%ss" 1000) ; => "16m 40s"

-- 
Basil





reply via email to

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