2

I am using python module pypcap (simplified object-oriented Python wrapper for libpcap). I am having troubles with timestamp resolution. In my pcap file I can see my packets have nanosecond precision, but when I parse the pcap file in python and extact the timestamp from a particular packet, it only has microsecond precision?

import pcap
for ts, pkt in pcap.pcap():
    print ts, `pkt`

ts has microsecond precision. I want nanosecond precision, any ideas? Thanks

martineau
  • 119,623
  • 25
  • 170
  • 301
Jonathon Hill
  • 1,007
  • 4
  • 16
  • 23

0 Answers0