I am a C++ user and starting to branch out a bit. I need to clock how long it takes to do a few binary searches in seconds for a project.
My question is how do I make a stop clock in JavaScript in seconds to see how fast/slow a function runs? What is the time.h equivalent in C++ to JS? I was trying to search on google but kept getting different time/clock results.
Also, how can I refine my search next time so I don't have to resort to having to post? I would like to get better a googling!
Thank you!