A simple way to get performance timings in JavaScript.