1 .\"Copyright (c) 2013, Michal Sekletar
2 .\"All rights reserved.
4 .\"Redistribution and use in source and binary forms, with or without
5 .\"modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in
12 .\" the documentation and/or other materials provided with the
14 .\" 3. The names of the authors may not be used to endorse or promote
15 .\" products derived from this software without specific prior
16 .\" written permission.
18 .\"THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
19 .\"IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
20 .\"WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 .TH PCAP_GET_TSTAMP_PRECISION 3PCAP "18 December 2013"
24 pcap_get_tstamp_precision \- get the time stamp precision returned in
29 #include <pcap/pcap.h>
33 int pcap_get_tstamp_precision(pcap_t *p);
37 .B pcap_get_tstamp_precision()
38 returns the precision of the time stamp returned in packet captures on the pcap
41 .B pcap_get_tstamp_precision()
43 .B PCAP_TSTAMP_PRECISION_MICRO
45 .BR PCAP_TSTAMP_PRECISION_NANO ,
47 that pcap captures contains time stamps in microseconds or nanoseconds
51 pcap_set_tstamp_precision(3PCAP),