[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Processor time used by Emacs
From: |
Lars Brinkhoff |
Subject: |
Processor time used by Emacs |
Date: |
29 Oct 2003 14:02:22 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
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/
- Processor time used by Emacs,
Lars Brinkhoff <=