A basic function for timing areas of your javascript code. Outputs to the console.