code: def get_packet_time(self, pkt):
          
          if pkt.sent_time:
            t = pkt.sent_time
            sec = int(t)
          else:
            t = pkt.time
            sec = int(t)
          usec = int(round((t-sec)*1000000))
          return (sec,usec)
docs: Return the second and micro-second timestamp components for a packet.