From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.help Subject: Re: Timing execution of function calls in Emacs lisp Date: Thu, 05 Jun 2008 17:27:41 +0200 Message-ID: <484805ED.9000400@gmail.com> References: <50d4f479-3c3e-4049-ba88-c989174118dc@j22g2000hsf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1212679912 25455 80.91.229.12 (5 Jun 2008 15:31:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Jun 2008 15:31:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: =?ISO-8859-1?Q?Nordl=F6w?= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 05 17:32:31 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K4HPM-0003Ty-8u for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jun 2008 17:29:44 +0200 Original-Received: from localhost ([127.0.0.1]:47821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4HOZ-0007PF-Ly for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Jun 2008 11:28:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K4HNa-00072j-7w for help-gnu-emacs@gnu.org; Thu, 05 Jun 2008 11:27:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K4HNY-000725-LS for help-gnu-emacs@gnu.org; Thu, 05 Jun 2008 11:27:53 -0400 Original-Received: from [199.232.76.173] (port=41633 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K4HNY-00071Y-Bx for help-gnu-emacs@gnu.org; Thu, 05 Jun 2008 11:27:52 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]:55242) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K4HNW-0001WR-IY for help-gnu-emacs@gnu.org; Thu, 05 Jun 2008 11:27:50 -0400 Original-Received: from c83-254-145-59.bredband.comhem.se ([83.254.145.59]:62451 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1K4HNU-0001kj-3T; Thu, 05 Jun 2008 17:27:48 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <50d4f479-3c3e-4049-ba88-c989174118dc@j22g2000hsf.googlegroups.com> X-Antivirus: avast! (VPS 080605-0, 2008-06-05), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.145.59 X-Scan-Result: No virus found in message 1K4HNU-0001kj-3T. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1K4HNU-0001kj-3T efa1e12bc28e083082e122176fa92d42 X-detected-kernel: by monty-python.gnu.org: Linux 2.6? (barebone, rare!) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54471 Archived-At: Nordlöw wrote: > Is there a way to measure the execution time of function calls? > > Compare with following Matlab-snippet: > tic; do_something(with_some_arg); toc > > In emacs lisp perhaps something like: > (time FUNCTION ARGS...) Maybe the benchmark elisp library?