mIRC Homepage

How to get a accurate ping time?

Posted By: littlecramp

How to get a accurate ping time? - 06/04/03 02:21 PM

as above?
Posted By: PeteM

Re: How to get a accurate ping time? - 06/04/03 04:53 PM

a ping time from where, exactly, server of another user, either way use that of /ping nickname/server $ctime, and when you get your pong/ping reply, calcuate the difference between the response and your current $ctime, yet.. another way would to be use that of $ticks in sending/working out
Posted By: littlecramp

Re: How to get a accurate ping time? - 07/04/03 05:08 AM

I wanted to ping a user and get the response in milliseconds. How to do that?
Posted By: Collective

Re: How to get a accurate ping time? - 07/04/03 05:17 AM

Here is my method:
Code:
on *:CTCPREPLY:ping *:{
  echo $color(ctcp) -at [ $+ $nick $1 reply]: $calc($ticks - $2) ms
  haltdef
}
alias ctcp {
  if ( $2 == ping ) {
    echo $color(ctcp) -at -> $chr(91) $+ $1 $+ $chr(93) PING
    .msg $1 PING $ticks $+ 
  }
  else { !ctcp $1- }
}
© 2021 mIRC Discussion Forums