all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Francesc Rocher" <rocher@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: uptime.el
Date: Tue, 12 Feb 2008 00:03:06 +0100	[thread overview]
Message-ID: <ade856a30802111503g78300a65t404e9f4471b04e03@mail.gmail.com> (raw)

>Glenn Morris wrote:
>
>Might as well have this functionality. I installed something similar.
>
>I set emacs-startup-time in command-line.

I prefer `emacs-startup-time' defined as a constant, not as a variable. As
such, it needs to be evaluated only at startup:

   (eval-at-startup
    (defconst emacs-startup-time (current-time)
      "Time at which GNU Emacs was started up."))


>> (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.

The HERE argument is the same as of the function `emacs-version'.


>> (defun emacs-startup-time (&optional here format) "\
>> Return string containing the date and time Emacs was started up.
>
>Didn't see the point of this function, which is basically just a call
>to format-time-string.

`emacs-uptime' tells you how long emacs has been running, whilst
`emacs-startup-time' tells you the time at which Emacs was started up.


Regards,
---
Francesc Rocher




             reply	other threads:[~2008-02-11 23:03 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11 23:03 Francesc Rocher [this message]
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
  -- strict thread matches above, loose matches on Subject: below --
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   ` uptime.el Juri Linkov
2008-02-12  5:50     ` uptime.el Glenn Morris

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=ade856a30802111503g78300a65t404e9f4471b04e03@mail.gmail.com \
    --to=rocher@member.fsf.org \
    --cc=emacs-devel@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.