I used $ticks to calculate a ping reply in milliseconds. See the explanation and code here: Ping in milliseconds. Please don't rip the code (use it without giving credit to the original author), or you will have bad sex for the rest of your life wink