a simple idea to measure the ping time is ... send something like "ping millisecs()", where millisecs is the millisecs time ! then the server sends back the millisecs time .. easy to calcuate then ... and your client don't have to store when a ping has been send.
you should develop some kind of "header" ... cause, always sending the whole string "orientation" is waste of bandwidth ... make a 1 byte constant like "const com_orientation = 1" then you only have to submit 1 byte then 12 bytes for the string
you should develop some kind of "header" ... cause, always sending the whole string "orientation" is waste of bandwidth ... make a 1 byte constant like "const com_orientation = 1" then you only have to submit 1 byte then 12 bytes for the string