next up previous contents
Next: 5.3 Connecting to the Up: 5. Client/Server Protocol Previous: 5.1 A Note on   Contents

5.2 A Note on Time

As explained below, Player messages often contain one or more time values, and it is important that the client be able to interpret them properly. Player measures time in the same way as many operating systems (struct timeval). Each time value is represented as two ints; one gives the number of seconds elapsed since the epoch (00:00:00 January 1, 1970) and the other gives the number of microseconds since the last second elapsed. Note that the time fields are only ever set by the server when sending a message to the client; the client should set them to zero when sending messages to the server.



2004-06-02