I am new to C ++, having a lot more C experience.
I am writing a program that will use a string class, and began to think about the effectiveness of the length () method.
I realized that I did not have a good answer to this question, and therefore it was interesting whether there was an answer somewhere to this and similar questions. Although I am more than capable of determining the execution time of my own code, I lose a little when it comes to the provided code, and therefore I believe that I can not accurately evaluate the effectiveness of my programs.
Is there any documentation in C ++ (online or in the "man" format) that contains information about the execution time of the provided code?
Edit: I'm interested in this at all, and not just the string :: length.
source
share