added: timeout value in second

When using exec to execute ping, if timeout value is not specified and
if host is down, it will take more than 10 seconds to to run this
script. Default timeout value is set to 5 sec

usage:
$ping->setTimeout(3); //timeout in 3 secs
$latency = $ping->ping();