How can I get a “Delay” for a process that has a TCP connection?

I am looking to get the Delay field for a TCP connection. I notice that Windows Resource Monitor has this field, and I was wondering if there is a way to find it. Preferably without using WMI.

If you don’t know what field I’m talking in, open the task manager, go to the Performance tab and click the Resource Monitor button.

Once the resource monitor opens, expand the TCP Communications area and you will see the Delay field. Is there access to this programmatically?

Thank!

+3
source share
2 answers

, (RTT) TCP. .

API, , GetPerTcpConnectionEStats. TCP-.

tcp, GetTcpTable, GetPerTcpConnectionEStats, TcpConnectionEstatsPath EstatsType, < href= "http://msdn.microsoft.com/en-us/library/ee720198%28v=VS.85%29.aspx" rel= "nofollow" > TCP_ESTATS_PATH_ROD_v0.

RTT, , , SumRtt CountRtt, RTT TCP.

, Vista , , , .

+2

, API. , , , , .

, - ():

startTime = now
socket = openSocket()
endTime = now
latency = endTime - startTime

, . , Nagle .

0

Source: https://habr.com/ru/post/1750340/


All Articles