Pulsar Timing and Its Application for Navigation and Gravitational Wave Detection