all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Brinkhoff <lars@nocrew.org>
Subject: Processor time used by Emacs
Date: 29 Oct 2003 14:02:22 +0100	[thread overview]
Message-ID: <85d6cgp57l.fsf@junk.nocrew.org> (raw)

Is there a way in Emacs Lisp to find out the amount of processor time
(perhaps separated into user/system time) spent by Emacs?

For example, if there was such a function called processor-time, this
should return (close to) 0:

        (let ((start (processor-time)))
          (sleep-for 10)
          (- (processor-time) start))

, whereas current-time would indicate that ten seconds passed
sleeping.

-- 
Lars Brinkhoff,         Services for Unix, Linux, GCC, HTTP
Brinkhoff Consulting    http://www.brinkhoff.se/

             reply	other threads:[~2003-10-29 13:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-29 13:02 Lars Brinkhoff [this message]
2003-10-29 15:58 ` Processor time used by Emacs Dan Anderson
     [not found] <mailman.2705.1067432711.21628.help-gnu-emacs@gnu.org>
2003-10-29 13:16 ` David Kastrup
2003-10-29 14:05   ` Lars Brinkhoff

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=85d6cgp57l.fsf@junk.nocrew.org \
    --to=lars@nocrew.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.