How to effectively measure difference in a run-time.
- by Knowing me knowing you
Guys, in one of the excersises in TC++PL B.S. asks to:
"Write a function that either returns a value or that throws that value based on an argument. Measure the difference in run-time between the two ways."
Great pity he never explaines how to measure such things. I'm not sure if I'm suppose to write simple "time start, time end" counter or maybe there are more effective and practical ways to do it?
Thanks in advance.