Example 1 — Example
Typical call.
JavaScript
console.time("x");
console.timeEnd("x");How It Works
- Run the snippet.
- Read the printed output.
console.timeEnd(label) stops the timer and prints elapsed milliseconds.
console.time("x");
console.timeEnd("x");Typical call.
console.time("x");
console.timeEnd("x");CODETOFUN NEWS
Get the latest IT news, programming updates, and technology trends directly on your phone.
Your daily dose of tech, straight to your feed.
6 people found this page helpful