+1 from me for `IEx.Helpers.time`. It doesn't solve the „oh I wish I timed this 
command” problem, but I think its useful on its own, and personally I'd much 
rather have just this.

I suggested something somewhat similiar with additional timing information in a 
`Kernel.dbg` macro proposal. One of the criticisms was such timing info is not 
representative, and in fact can be way skewed eg if the module wasn't loaded 
yet. Because it’s in IEx, perhaps it’s a bit clearer it’s a “one-off” 
measurement than a full fledged one that could be expected from Kernel module? 
(Perhaps it’s a false dichotomy.) And regarding time skew, at least for module 
loading, because we can make it a macro if we see `time Mod.fun` maybe we can 
try loading `Mod` before timing it? However, if Mod.fun calls Mod2.fun2 and 
that’s not loaded either, we would have to pay the price anyway.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/E1309617-DEA0-43FB-A7D0-CE34FDC343FE%40wojtekmach.pl.

Reply via email to