I need to have a base class which I will use to inherit other classes which I would like to measure execution time of its functions.
So intead of
There is also timeit, which is part of the standard library, and is really easy to use. Remember: don't reinvent the wheel!