在c#中查找ping的最小,最大,平均响应时间 [英] Finding min,max,average responsetime of ping in c#
本文介绍了在c#中查找ping的最小,最大,平均响应时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
我正在编写一个代码来ping我的控制台应用程序中的5个服务,并希望找到每个服务的最小,最大,平均响应时间使用c#ping。任何人都可以帮我怎样 使用c#解决这个问题?
解决方案
查看System.Net.NetworkInformation.Ping类。
http://msdn.microsoft.com/en-us /library/system.net.networkinformation.ping.aspx
Hi there,
I am writing a code to ping 5 services in my console application and want to find the minimum,maximu,average reponsetime of each service ping using c#.Can anyone help me how to solve this using c#?
解决方案
Have a look at the System.Net.NetworkInformation.Ping class.
http://msdn.microsoft.com/en-us/library/system.net.networkinformation.ping.aspx
这篇关于在c#中查找ping的最小,最大,平均响应时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文