JavaScript tips — Measuring performance using console.time()

Publicado el: 13 diciembre 2022
en el canal de: Code 2020
964
36

console.time lets you measure the elapsed time between any two points in your code. The elapsed time is then printed to the developer console

To start a timer, simply call console.time(). You can also pass in an optional label to identify the timer

To end a timer, just call console.timeEnd(). If you labeled the timer, you must pass in the same label here. This will then print the elapsed time for the timer to the console

The two calls do not have to be in the same scope. This makes it easy to measure the elapsed time between any two points in your code

#javascript


En esta página del sitio puede ver el video en línea JavaScript tips — Measuring performance using console.time() de Duración hora minuto segunda en buena calidad , que subió el usuario Code 2020 13 diciembre 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 964 veces y le gustó 36 a los espectadores. Disfruta viendo!