[Winpcap-users] Delay and jitter

David Chang dchang at fsautomation.com
Wed Nov 29 22:42:08 GMT 2006


Each packet header (struct pcap_pkthdr) has a struct timeval in it, so you should be able to get the packet time down to the microsecond.

If you're looking for a substitute for gettimeofday() in Windows, I suggest GetSystemTimeAsFileTime() if you need an actual date or QueryPerformanceCounter() if you just need the number of ticks since the server has been running.

  ----- Original Message ----- 
  From: Antonio Ocampo 
  To: winpcap-users at winpcap.org 
  Sent: Wednesday, November 29, 2006 1:25 PM
  Subject: [Winpcap-users] Delay and jitter

  I need to find the delay and jitter, how can I do this? i've tried to use time.h but it just have precision of seconds and I need precision of microseconds !!! I can't use getimeofday() because my program have to run in windows and linux. 

  Another trouble, when I tried to use the fields of the struct pcap_stat

  if_drop: it shows me 0 always
  bs_cap: it doesn't compile

  Any suggestions? I really need your help. Thanks in advance


  Winpcap-users mailing list
  Winpcap-users at winpcap.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20061129/924966ab/attachment.htm

More information about the Winpcap-users mailing list