The GPS receiver in your mobile device compares the time signals it receives from the satellites with its internal clock. Knowing the speed of light and when the signals were sent and received, your device can calculate your distance from each satellite, and thereby home in on your longitude, latitude and altitude