I have a bit of experience with Clojure, but I am new to ClojureScript. I have been working on some code that was written by someone else. It uses a browser repl in sublimetext, connected to a browser via a port and a brepl-connected.html file. I tried to time the length of a function using (time (function arg)) in the repl, but the output is 0 msecs no matter what. Why does this happen?
I've tried something like (.time js/console label), but this always returns some unintelligble object to the console.
I'd like to be able to time functions and, in general, be able to use print statements and other tools to debug and improve my code. What is the best method to do this? Should I have returns go to the repl or to the browser?
Thanks in advance, I've looked around but I can't find a good article or post explaining this.