title: Time difference between two packets using Radiotap header MAC timestamp
body: <p>I am trying to parse MAC timestamp fields of radiotap headers of 802.11 packets captured on monitor mode. </p>
  
  <p>TSFT field of radiotap header is 64bit value in microseconds. Raw hex value is highlighted below. </p>
  
  <p><img src="https://i.stack.imgur.com/ACGhQ.png" alt="enter image description here"></p>
  
  <p>The MAC timestamp value is represented in decimal by Wireshark</p>
  
  <p><img src="https://i.stack.imgur.com/VWQ8t.png" alt="enter image description here"></p>
  
  <p>This decimal value is decimal value of 2b1c20cb00000000.</p>
  
  <p>What I'm trying to do is get the time difference between two frames using hex value in radiotap header MAC timestamp field.</p>
  
  <p><img src="https://i.stack.imgur.com/ErlqS.png" alt="enter image description here"></p>
  
  <p>For example:</p>
  
  <p>frame #2 has decimal value of 3106049021945315329 (2b1ae72100000001) and </p>
  
  <p>frame #3 has 3106066889009266689 (2b1af76100000001). </p>
  
  <p>subtracting this values gives 1AC47FFFFF5C1. And assuming this is in microseconds the value is equal to 470900214.330817 seconds.</p>
  
  <p>What is the process following this steps to get time difference of 0.000071 seconds by using the values in MAC timestamp field of radiotap header</p>
  
  <p>Thank you</p>