In everyday speech they are used synonymously with each other. However, in reality ping is a tool (a signal) that measures the time that it takes to fetch data from a server while latency is the actual time.