PCET
Latency is a vital concept in computer science. It measures the delay between an action and its response…