From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: uptime.el Date: Fri, 15 Feb 2008 03:02:34 -0500 Message-ID: <6izlu23aw5.fsf@fencepost.gnu.org> References: <87lk5ppxj4.fsf@jurta.org> <8g4pcb9aen.fsf@fencepost.gnu.org> <87ir0rcknh.fsf@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1203063851 15911 80.91.229.12 (15 Feb 2008 08:24:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 15 Feb 2008 08:24:11 +0000 (UTC) Cc: rocher@member.fsf.org, emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 15 09:24:34 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JPvs2-0006NO-2x for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 09:24:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPvrX-0005g4-J2 for ged-emacs-devel@m.gmane.org; Fri, 15 Feb 2008 03:24:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPvrS-0005fR-Cj for emacs-devel@gnu.org; Fri, 15 Feb 2008 03:23:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPvrO-0005ci-Nn for emacs-devel@gnu.org; Fri, 15 Feb 2008 03:23:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPvrO-0005cL-EA for emacs-devel@gnu.org; Fri, 15 Feb 2008 03:23:54 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JPvrO-0005UW-8n; Fri, 15 Feb 2008 03:23:54 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JPvWk-0008Su-QH; Fri, 15 Feb 2008 03:02:34 -0500 X-Spook: mailbomb encryption BRLO Skipjack Saudi Arabia Freeh X-Ran: CQU0-lZCN\UWb3K_994W%&UNv@W2+0RE~Y(TTi#/CGH6|)4;-G&@UeCQD`R?;~ub06&p`3 X-Hue: white X-Attribution: GM User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:89142 Archived-At: Juri Linkov wrote: > + (defvar emacs-startup-time-after-init nil emacs-after-init-time? emacs-init-end-time? > + (defun emacs-startup-time () > + "Return a string giving the Emacs startup time." This might be confused with the time at which Emacs started. emacs-init-duration? > + (interactive) > + (let ((str > + (format-seconds "Startup time: %Y, %D, %H, %M, %S" Hopefully emacs won't take an hour, or even many minutes to start, so you can probably just return the number of seconds without formatting it. I guess I had some opinions after all. :)