well adjusting the latency is the easy part.
doing it in real time while observing the connection and making adjustments, that is when it becomes hard.
and they did it basically after the network stack, so if a paket took 40ms they added no latency if it took 20ms they added 15ms and so on.
so EACH paket was evaluated and of course this is not an easy feat, because lol is serverside authoritive so the latency must be correct inside the server and the client for each packet.