| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/en-US/docs/Web/API/console/time_static | [Back] [Original] |
Get to know MDN better
This feature is well established and works across many devices and browser versions. Its been available across browsers since July 2015.
Note: This feature is available in Web Workers.
The console.time() static method starts a timer you can use to track how long an operation takes. You give each timer a unique name, and may have up to 10,000 timers running on a given page. When you call console.timeEnd() with the same name, the browser will output the time, in milliseconds, that elapsed since the timer was started.
See Timers in the console documentation for details and examples.
console.time()
console.time(label)
label OptionalA string representing the name to give the new timer. This will identify the timer; use the same name when calling console.timeEnd() to stop the timer and get the time output to the console. If omitted, the label "default" is used.
None (undefined).
| Specification |
|---|
| Console # time |
console.timeLog() and console.timeEnd() for examplesconsole.time()console.time()console.time()This page was last modified on Jul 4, 2025 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |