In networks, the latency measures the interval that a data package needs to get from the sender to the receiver through all stages (hubs and switches). Generally speaking, the latency corresponds to half of the ping-time (which not only measures the way to get there but also the way back).