From: "Basil L. Contovounesios" <contovob@tcd.ie>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: ndame <emacsuser@freemail.hu>, 39956@debbugs.gnu.org
Subject: bug#39956: 26.2; improve display of information of M-x list-timers
Date: Tue, 27 Oct 2020 10:23:33 +0000 [thread overview]
Message-ID: <877drct1ay.fsf@tcd.ie> (raw)
In-Reply-To: <87eelkougd.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 27 Oct 2020 11:05:06 +0100")
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
next prev parent reply other threads:[~2020-10-27 10:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-06 16:50 bug#39956: 26.2; improve display of information of M-x list-timers ndame
[not found] ` <handler.39956.B.15835136805690.ack@debbugs.gnu.org>
2020-03-07 22:03 ` ndame
2020-10-27 10:05 ` Lars Ingebrigtsen
2020-10-27 10:05 ` Lars Ingebrigtsen
2020-10-27 10:23 ` Basil L. Contovounesios [this message]
2020-10-28 9:07 ` Lars Ingebrigtsen
2020-10-28 15:17 ` Eli Zaretskii
2020-10-28 13:39 ` Mattias Engdegård
2020-10-30 10:03 ` Lars Ingebrigtsen
2020-10-30 10:06 ` bug#39956: (no subject) Lars Ingebrigtsen
2020-10-30 11:11 ` bug#39956: 26.2; improve display of information of M-x list-timers Lars Ingebrigtsen
2020-10-30 14:50 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877drct1ay.fsf@tcd.ie \
--to=contovob@tcd.ie \
--cc=39956@debbugs.gnu.org \
--cc=emacsuser@freemail.hu \
--cc=larsi@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).