help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to count the number of occurrences of a character in a string?


From: Noam Postavsky
Subject: Re: How to count the number of occurrences of a character in a string?
Date: Wed, 14 Oct 2015 18:19:21 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Kaushal Modi <kaushal.modi <at> gmail.com> writes:
> I ran the below wrapper progn block couple of times and I got
> different results each time. Oddly enough, I even got negative
> execution times.
> What am I doing wrong?

`benchmark' is a function, you need to quote the code you pass to it,
otherwise you're measuring how long it takes to evaluate `2' (the result of
the progn block).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]