implemented first raw version of getMeasuringInterval