If you want, you can actually send your $ticks value in your CTCP Ping, rather than setting it locally.
example:
Code:
/ctcpticks {
.raw privmsg $1 $+(:,$chr(1),PING,$chr(32),$ticks,$chr(1))
echo -a (whatever you want to show when you send the CTCP Ping)
}
on *:ctcpreply:PING*:{
echo -a $nick replied after $round($calc($calc($ticks - $2) / 1000),4) sec(s)
}