I'm looking to add timestamp functionality to sending and receiving packets in a Raspberry Pi in order to measure clock skew. I am having trouble finding the correct functions to modify to get accurate readings. The code is open source and can be found here.
Help on which functions to target when trying to accomplish this is appreciated.