From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: point-at-final-line Date: Sat, 27 Jan 2018 07:11:16 +0100 Message-ID: <87bmhfompn.fsf@mbork.pl> References: <868tckgl1y.fsf@zoho.com> <87vafom6af.fsf@bsb.me.uk> <86r2qcf1h2.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1517033427 15068 195.159.176.226 (27 Jan 2018 06:10:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 27 Jan 2018 06:10:27 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 27.0.50 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 27 07:10:23 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1efJgn-0002rq-EL for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jan 2018 07:10:09 +0100 Original-Received: from localhost ([::1]:56431 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efJin-0006Gh-U4 for geh-help-gnu-emacs@m.gmane.org; Sat, 27 Jan 2018 01:12:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efJiD-0006GU-DX for help-gnu-emacs@gnu.org; Sat, 27 Jan 2018 01:11:38 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1efJi8-0000Jh-FO for help-gnu-emacs@gnu.org; Sat, 27 Jan 2018 01:11:37 -0500 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:44172) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1efJi8-0000HT-85 for help-gnu-emacs@gnu.org; Sat, 27 Jan 2018 01:11:32 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id CAB11E6C40; Sat, 27 Jan 2018 07:11:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UqmX1eFS_XhZ; Sat, 27 Jan 2018 07:11:23 +0100 (CET) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 4936BE669E; Sat, 27 Jan 2018 07:11:23 +0100 (CET) In-reply-to: <86r2qcf1h2.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115863 Archived-At: On 2018-01-27, at 04:02, Emanuel Berg wrote: > (defmacro measure-time (&rest body) > "Measure and return the running time of the code block. > Not mine: http://nullprogram.com/blog/2009/05/28/" > (declare (indent defun)) > (let ((start (make-symbol "start"))) > `(let ((,start (float-time))) > ,@body > (- (float-time) ,start)))) Why not use benchmark.el? Best, -- Marcin Borkowski