public double func(double x) { this.x = x; return(timeCounter.CountTimeForRepeatableMethod(action)); }