As an aside, IF that tunnel could be dug and all the problems over come...like having a tube that could be evacuated of air and a "car" that could be, say, magnetically kept centered in the tube, and the heat abated...and what every else might arise, the time to make the transit from one side to the other would be 42 minutes.
The car would free fall accelerating to the center of the earth in 21 minutes and them decelerate going away from the center for the next 21 minutes...with no propulsion other than gravity. Of course, maintaining that tube would be a bit costly.
Now..rather than go through the center, if you did the same thing with a secant tunnel, a tunnel going from one point on the surface to another point on the surface, with the same type of tunnel environment, the transit time would, again be 42 minutes.
NY to SF in 42 minutes.