Go Down

Topic: How to get the average time with using ICMPPING library? (Read 642 times) previous topic - next topic


Hi all,
I wanna use the ICMP Ping library to ping a IP address in some times and comes out with the average Time.
From Blake F's ping example, it gave me repeatedly ping results and without the average time.
To do that, do i need to change something in the ICMP Ping library or just modify in his ping example.
Any suggestions? Thanks very much.


For your next post: include the necessary links! I guess you meant this library: http://www.blake-foster.com/projects/ICMPPing.zip

You just need to make several pings and calculate the average (http://en.wikipedia.org/wiki/Average). You don't need to change the library you just have to implement a simple loop building a sum and do a division afterwards.

Go Up