From: Jos Backus Date: 2006-12-03T02:15:06+09:00 Subject: Re: cidr.rb: port of Perl's Net::CIDR v0.11 available On Sat, Dec 02, 2006 at 08:50:12PM +0900, Daniel Berger wrote: > Ok, I'll add those. However, don't put too much stock in the duration. > Looking at the Perl code, it isn't much more than this: > > start = Time.now > p.ping? > duration = Time.now - start True, but one would want the timing measurement to be done as close as possible around the send and the recvfrom, eliminating the avoidable overhead of the method call and setup inside it being included in the duration. Plus, having .duration is convenient, no? > And you can get the ip via IPSocket.getaddress(host) Agreed. That functionality doesn't belong in this module. -- Jos Backus jos at catnook.com