Ping

Added ping calculation