I use somethin similar to ping using CTCP...
Have an alias that will CTCP myself with a $ticks count, then a CTCP catcher that will grab it, do the calculation and that's the time. I've noticed that even though it's not supposed to prevent ping timeouts, they happen somewhat less while I have it running, and also, during the times that I do ping out, my connection gets restore more quickly. I've grown addicted to having it running, because then I can glance through and have an idea to my 'ping' times, and when it goes up, either an impending netsplit is about to happen, or a DDOS/DOS is happening.