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