I am have an 80bit PTP (IEEE 1588v2) timestamp that comes in via a tcp socket.
The PTP timestamp consists of a 48 bit unsigned int for seconds and a 32bit unsigned int for nanoseconds.
So my question is how do I represent this timestamp in c# as there is no UInt48?
You could use an array of 10 bytes (=80 bits) and extract UIint64 for seconds: