all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Glenn Morris <rgm@gnu.org>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: uptime.el
Date: Tue, 12 Feb 2008 02:14:38 +0200	[thread overview]
Message-ID: <87tzkf131o.fsf@jurta.org> (raw)
In-Reply-To: <07tzkgtjom.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 10 Feb 2008 19:34:33 -0500")

>> What do people think of this?
>
> Might as well have this functionality. I installed something similar.

Thanks.

>> (The patch in startup.el should be done differently.)
>
> I set emacs-startup-time in command-line.

I think there should be two recorded startup timestamps instead of one:
the first timestamp recorded as early as possible, and the second - when
Emacs completely finishes loading .emacs and all related files.

The difference between these two timestamps will show how much time the
startup process itself takes.  This is useful for optimization of
.emacs loading.

So a new command emacs-startup-time could display (or non-interactively
return) the duration of the Emacs startup.

>> (defun emacs-uptime (&optional here) "\
>> Tell how long GNU Emacs has been running.
>> If the optional argument HERE is non-nil, insert string at point."
>
> Didn't see the point of the HERE argument; used an alternative
> implementation based on something in gnus-art.

A general time difference function would be definitely useful,
but what format it should use?  For the uptime perhaps the standard
format of the `uptime' system command is more preferable, e.g.
"15:16:19 up 51 days 1 year".

-- 
Juri Linkov
http://www.jurta.org/emacs/




  reply	other threads:[~2008-02-12  0:14 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-19 10:12 uptime.el Richard Stallman
2007-12-19 10:33 ` uptime.el Leo
2007-12-23  2:26 ` uptime.el Ævar Arnfjörð Bjarmason
2007-12-23 21:11   ` uptime.el Richard Stallman
2007-12-23 17:48 ` uptime.el Juri Linkov
2007-12-24 13:31   ` uptime.el Richard Stallman
2007-12-24 21:59     ` uptime.el Juri Linkov
2007-12-25 21:13       ` uptime.el Richard Stallman
2008-02-11  0:34 ` uptime.el Glenn Morris
2008-02-12  0:14   ` Juri Linkov [this message]
2008-02-12  5:50     ` uptime.el Glenn Morris
  -- strict thread matches above, loose matches on Subject: below --
2008-02-11 23:03 uptime.el Francesc Rocher
2008-02-12  5:54 ` uptime.el Glenn Morris
2008-02-12 23:35   ` uptime.el Juri Linkov
2008-02-14  9:04     ` uptime.el Glenn Morris
2008-02-14 20:56       ` uptime.el Juri Linkov
2008-02-15  8:02         ` uptime.el Glenn Morris
2008-02-16  0:27           ` uptime.el Juri Linkov
2008-02-16  3:35             ` uptime.el Glenn Morris
2008-02-16 19:14               ` uptime.el Juri Linkov
2008-02-16 22:22                 ` uptime.el Glenn Morris
2008-02-16 23:18                   ` uptime.el Juri Linkov
2008-02-17  0:19                     ` uptime.el Glenn Morris
2008-02-17  0:45                       ` uptime.el Juri Linkov
2008-02-17 22:55                         ` uptime.el Glenn Morris
2008-02-17 23:11                           ` uptime.el Juri Linkov
2008-02-16  2:00           ` uptime.el Xavier Maillard

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tzkf131o.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=emacs-devel@gnu.org \
    --cc=rgm@gnu.org \
    --cc=rms@gnu.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.