you have to send $ticks in ping and calculate with that instead of $ctime