S
Stefan Weber
Hi
I'm looking for a way to get an as accurate as possible timestamp of an
IP datagram.
The Java API doesn't provide something like that. With TCP, one is
working with the stream abstraction anyway and the DatagramPacket (UDP)
doens't have such a method.
Does anybody know a workaround? Of course, calling
System.currentTimeMillis() after receiving/sending something over the
socket could work, but I don't know how accurate this is...
Thanks and regards,
Stefan Weber
I'm looking for a way to get an as accurate as possible timestamp of an
IP datagram.
The Java API doesn't provide something like that. With TCP, one is
working with the stream abstraction anyway and the DatagramPacket (UDP)
doens't have such a method.
Does anybody know a workaround? Of course, calling
System.currentTimeMillis() after receiving/sending something over the
socket could work, but I don't know how accurate this is...
Thanks and regards,
Stefan Weber