Discussion:
[Linuxptp-users] is softare timestamping using CLOCK_REALTIME or CLOCK_MONOTONIC ?
BOURDIL Pierre-Alain
2017-06-15 15:07:20 UTC
Permalink
Hi,

sorry if this is not the right ml for this question, but i understood that SOF_TIMESTAMPING_RX_SOFTWARE is linux ptp related.


When i timestamp received packet using SOF_TIMESTAMPING_RX_SOFTWARE, using setsockopt, the timestamp are written in anciliary timespec struct.


Which clock is used for these timestamp : CLOCK_REALTIME or CLOCK_MONOTONIC ?


This is to study latency in a single clock domain (using mininet)



Regards,
Miroslav Lichvar
2017-06-15 15:12:53 UTC
Permalink
Post by BOURDIL Pierre-Alain
When i timestamp received packet using SOF_TIMESTAMPING_RX_SOFTWARE, using setsockopt, the timestamp are written in anciliary timespec struct.
Which clock is used for these timestamp : CLOCK_REALTIME or CLOCK_MONOTONIC ?
It's the CLOCK_REALTIME clock. It's the same as with the SO_TIMESTAMP
and SO_TIMESTAMPNS socket options.
--
Miroslav Lichvar
Loading...