I was running a test on my HTTP server and the transfer speed went really slow when I switched the server from localhost(used a laptop) to a AWS EC2 t.micro server.
Latency = 922 ms means that it takes 922 ms as the first response of the request from when the request has been made.
Sample Time(or Response Time) = 1232 ms means that it takes 1232 ms to process the request from when it has been made.
Therefore, Response Time = Latency + Processing Time