Fork me on GitHub
#cider
<
2022-11-10
>
vlnn17:11:08

Hi. Did anyone bothered to add evaluation time to the cider’s eval overlay? I suspect i should store the timer between calls in cider-before-eval-hook and cider-after-eval-hook — or is there some already invented wheel for that? @bozhidar?

bozhidar17:11:17

@vlnn-github There’s none, although this was proposed several times. That’s fairly easy to do both on the client and the server side. Probably it should be done server-side to be more accurate, though. (otherwise the encoding/decoding + network time will skew the elapsed time a bit).

vlnn17:11:22

so the time should/could be returned by let’s say nrepl as metadata?

bozhidar17:11:23

I think we added some client-side timestamps to the nREPL messages in the server log in the past - something similar can be the basis for a client-side implementation if one wishes to pursue one.

🙌 1