Console.time - Javascript Debugging Tip 3

Published: 29 July 2016
on channel: Hungry Turtle Code
1,142
24

The writeup for this video:
https://hungryturtlecode.com/tips-tri...

If you want to make your code as efficient as possible, you will need some kind of benchmark. One of the best benchmarks to use for javascript is the time it takes for the code to execute. So when you are debugging your code for efficiency, console.time is your best friend.

What console.time allows you to do is to time how long your code takes to run between any two places in your code. This is with just two simple methods - console.time and console.timeEnd. Which is a lot better than many methods that I have seen developers use where they grab the time stamp manually and calculate the time taken that way. That just ends up making the code messier.

So in this video I will show you exactly how easy it is to use console.time and why it is such an important tool to know about.

Support Me On Patreon
  / hungryturtlecode  

One Off Donations:
PayPal - https://www.paypal.com/cgi-bin/webscr...
Credit / debit card - https://hungryturtlecode.com/donate

Bitcoin: 39iDX27ZSkYtRhUrH5r5YN128wEjwDmSYp
Ethereum: 0x38b3cBF8Ee3EeeeA33D1925bA0ce0e90c8EcFD46
Horizen (ZEN): znanBCHpWJecBwZZmft9r5QzbzRX4nQn6Dz

Check Out The Site!
https://hungryturtlecode.com/?utm_sou...

SUBSCRIBE!
http://www.youtube.com/hungryturtlede...

Join the Community!
Patreon -   / hungryturtlecode  
Follow Me --   / hungryturtledev  
Quora - https://www.quora.com/profile/Adrian-...
Like Me --   / hungryturtlecode  
linkedin --   / hungry-turtle-code  

Github (Personal) -- https://github.com/adiman9
Github (Hungry Turtle Code) -- https://github.com/HungryTurtleCode


On this page of the site you can watch the video online Console.time - Javascript Debugging Tip 3 with a duration of hours minute second in good quality, which was uploaded by the user Hungry Turtle Code 29 July 2016, share the link with friends and acquaintances, this video has already been watched 1,142 times on youtube and it was liked by 24 viewers. Enjoy your viewing!