Ping = Latency
Well, they are a bit different.
Ping is the time that it takes for a signal to get sent to the server and back to your computer. Like a radar.
Latency is the time it takes for information to be created and sent to a server (or another computer).
I'm not sure if I confused them.