[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: uptime.el
From: |
Francesc Rocher |
Subject: |
Re: uptime.el |
Date: |
Tue, 12 Feb 2008 00:03:06 +0100 |
>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
- Re: uptime.el, Glenn Morris, 2008/02/10
- Re: uptime.el,
Francesc Rocher <=
- Re: uptime.el, Glenn Morris, 2008/02/12
- Re: uptime.el, Juri Linkov, 2008/02/12
- Re: uptime.el, Glenn Morris, 2008/02/14
- Re: uptime.el, Juri Linkov, 2008/02/14
- Re: uptime.el, Glenn Morris, 2008/02/15
- Re: uptime.el, Juri Linkov, 2008/02/15
- Re: uptime.el, Glenn Morris, 2008/02/15
- Re: uptime.el, Juri Linkov, 2008/02/16
- Re: uptime.el, Glenn Morris, 2008/02/16
- Re: uptime.el, Juri Linkov, 2008/02/16