API in Java

GPS module is loaded through the serial port on the RouterOS device then reads the GPS information via Java, but time is always read to half a second slower than the system time.Code is as follows:
ret.sendCommand(“/system/gps/monitor\n=once=.proplist=date-and-time,latitude,longitude,altitude,satellites\n”)

what module it is?
is there difference, when you query everything or single variables from it?

it looks more like RouterOS communication with the module or the module is slow to respond.

Just IMHO… Shouldn’t your application respect the GPS’s clock anyway? I mean, there is a reason RouterOS sends the GPS’s clock at every sample - what you get is what the coordinates were at that time, not at the moment you got them from RouterOS… A well written application should take the data from RouterOS as a “historical” one. The fact that the “history” is less than a second older than the present is just a minor detail that the app should be agnostic about.