problems of getMeasure()

I want to set the value of modifer to 1 and then read the current measurement.
but the measurements I got were not correct. It should be 30.93, but it is not.
After setting the value of the modifer, it doesn't react immediately, cant use getMeasure() immediately ???