added feature to support multiple # of pings, calculate avg of latency

added:
- timeout value so that it won't get confused with ttl (especially when using fsockopen)
- now support multiple # of pings (when using method = exec), use method setPingCount() to set the # of count
- calculate avg of latency (when using method = exec)