Implements a console.time/timeEnd wrapper