[elixir-core:9234] Re: Automatically time long-running iex commands.

2019-10-18 Thread Exempll
I think displaying the running time to the right of the result would be ideal. The user will not think it is program output, since it is to the right and on the same line as the result. iex(14)> :timer.sleep(4000) :ok 4.000s

Re: [elixir-core:9234] Re: Automatically time long-running iex commands.

2019-10-18 Thread José Valim
Let's go easy. :) Showing the timer as it does adds a bunch of complexity. Showing it on the right also means we need to integrate with the inspect algorithm to make sure they do not overlap. All of those are added complexity. For now, we will only show a message at the end when above a threshold