JS Measure how long a portion of code can take to be executed.