Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    $\begingroup$ +1. In addition, I would advise the OP to replace Block with Module in the new definition. Otherwise, unexpected results could occur should any expression in the evaluation chain for y happen to use the symbols time or out. $\endgroup$ Commented Oct 18, 2019 at 15:01
  • $\begingroup$ @WReach Thanks for pointing that out, I've updated the code & added a note. (I did think of it at one point, but for some strange reason I decided that it wasn't an issue here - so thanks again for catching that :) ) $\endgroup$ Commented Oct 18, 2019 at 19:32
  • $\begingroup$ Ok, thanks, that was the missing piece. Actually, I think I've built a pretty good profiler based on this. $\endgroup$ Commented Oct 19, 2019 at 13:43