Example 1 — Example
Typical call.
JavaScript
console.time("load");
console.timeEnd("load");How It Works
- Run the snippet.
- Read the printed output.
console.time(label) starts a timer. Pair with timeEnd.
console.time("load");
console.timeEnd("load");Typical call.
console.time("load");
console.timeEnd("load");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