How train travel put the whole world on the clock