Timer-class to estimate the calculation time