A method and apparatus for synchronizing and accurate time calculations for GNSS receiver