The ping program usually sends a 32-byte ICMP packet to the IP address and waits for the same packet to come back. This simple program can do many things. The farther the other IP is from you, the longer this period is. For example, when connecting to an IP in the internal network with 0.2 ms, when you ping a remote ip, this time will be much higher as the distance increases.

Ping Tool