Shawn Hoover <shawn.hoo...@gmail.com> writes:
> I see usages of the time macro that wrap the expression of interest in a call
> to dotimes. Is there any interest in an overload of time that takes an
> additional parameter for a number of iterations, evaluates the expression that
> many times, and prints the average time in the report?
>
> Usage:
> user> (time 10 (* 21 2))
> "Elapsed time: 0.201 msecs, Average: 0.0201 msecs"
> 42
> user> 

I think this is a bad idea, read this article for reasons why

http://www.ibm.com/developerworks/java/library/j-benchmark1.html

--
jan

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to