<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2995" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Antonio,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>DC</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=antonio.ocampo@gmail.com
href="mailto:antonio.ocampo@gmail.com">Antonio Ocampo</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 29, 2006 1:25
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Winpcap-users] Delay and
jitter</DIV>
<DIV><FONT face=Arial size=2></FONT><BR></DIV>
<DIV><BR>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. </DIV>
<DIV> </DIV>
<DIV>Another trouble, when I tried to use the fields of the struct
pcap_stat</DIV>
<DIV> </DIV>
<DIV>if_drop: it shows me 0 always</DIV>
<DIV>bs_cap: it doesn't compile</DIV>
<DIV> </DIV>
<DIV>Any suggestions? I really need your help. Thanks in advance</DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users
mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BLOCKQUOTE></BODY></HTML>