Pages: [1]   Go Down
Author Topic: How to get the average time with using ICMPPING library?  (Read 314 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 96
Posts: 4702
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Pages: [1]   Go Up
Jump to: