console.timeEnd()
console.timeEnd() is a JavaScript method in the Console category. Stops the timer and logs the duration. The syntax is console.timeEnd(label). A typical example: console.timeEnd("loop") // "loop: 0.123ms". A close sibling is console.log(), which outputs a message to the console. A close sibling is console.error(), which outputs an error message. A close sibling is console.warn(), which outputs a warning message. A close sibling is console.info(), which outputs an informational message. More about this category: Console methods for debugging — log, error, table, time, and more. Related Console methods: console.log(), console.error(), console.warn(), console.info(), console.debug(), console.table(), console.group(), console.groupCollapsed(). This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try console.timeEnd() immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.