Server send a packet to the player, then the player replies with the current time. When the server get this time you can subtract. If you don't want the client to send the actual data (the time in this case), you can instead use the server to do all that, but beware that you will get the time to "send and receive" the data, not only to "receive" as in the first method.