Latency - time it takes for one data packet to leave your computer and arrive at the gaming servers running your game. Obviously, the faster this data arrives at the gaming server, the better your in-game advantage becomes.
‍Ping - Ping is the measurement of how low the latency on your connection is running at. The lower the ping, the better the in-game advantage becomes.