RequestTime

Top  Previous  Next

Message

 

RequestTime

 

Originator

 

Client

 

Response

 

Info: Time: <time>

 

Response (immediate socket)

 

<time>

 

Details

 

Asks for a Time message to be sent giving the system time (on the server) in milliseconds. If you want to use this timing information (e.g. for latency calculation) and your client language can't read the system time sufficiently accurately, you can use this feature of the server.

 

Comments

 

This is the actual system time, not the clock that is reset by the ResetClock command. Thus, you can have the following exchange with the server:

 

       TimeStamps on

       Info: Timestamps on [200952019]

       ResetClock

       Info: Clock reset [0]

       RequestTime

       Info: Time: 200965075 [6943]

 

Revision history

 

Implemented in WhiskerServer version 1.