Might be worth have a look at this as well - http://www.gamedev.net/reference/pro...s/shavingping/