The current implementation of CTCP PING uses the $ctime variable which results in a ping reply accurate to the second. However given that a high number of users are on fast digital connections, having a ping of 0sec when < 1000ms is not very useful.
I propose that CTCP PINGs be more accurate, perhaps to the millisecond by using a modified timestamp. I have implemented with mIRC script a new /ping command with the $ticks variable. This gives a less 'blunt' ping reply.
Aliases: (aliases.ini)
/ping raw -q PRIVMSG $$1 $+(:,$chr(1),PING $ticks,$chr(1))
Remote: (scripts.ini)
on 1:CTCPREPLY:PING*:{
echo 4 -a $+([,$nick PING reply]: $calc($ticks - $2),ms)
halt
}
This could of course be refined to use $asctime to format ping replies > 1000ms like mIRC's native implementation.
Hopefully this feature will be useful to people, and possibly included in future versions of mIRC.