Elisp Running Time Macro
I wanted an elisp macro that could measure the running time of a block of code. Specifically, I wanted it to work like this,
(measure-time ... body ...)
And it would return the running time as seconds in floating point. Well, here's a macro that does it!
It's only good for up to around 18 hours, then the time integer overflows. If only Emacs had arbitrary precision numbers. Here it is in action using my binomial function from last week.
Which, just now, returned
3.643713 seconds when executed.