Refactor measurement getter
Support read timeout