use console.time to statistics the total execution time