How stellar parallax is measured?