blob: 709147a52f62df292c80773b3c6c4200d8920c71 [file] [log] [blame]
Elliott Hughes965a4b52017-05-15 10:37:39 -07001.\"Copyright (c) 2013, Michal Sekletar
2.\"All rights reserved.
3.\"
4.\"Redistribution and use in source and binary forms, with or without
5.\"modification, are permitted provided that the following conditions
6.\"are met:
7.\"
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
13.\" distribution.
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.
17.\"
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.
21
22.TH PCAP_GET_TSTAMP_PRECISION 3PCAP "18 December 2013"
23.SH NAME
24pcap_get_tstamp_precision \- get the time stamp precision returned in
25captures
26.SH SYNOPSIS
27.nf
28.ft B
29#include <pcap/pcap.h>
30.ft
31.LP
32.ft B
33int pcap_get_tstamp_precision(pcap_t *p);
34.ft
35.fi
36.SH DESCRIPTION
37.B pcap_get_tstamp_precision()
38returns the precision of the time stamp returned in packet captures on the pcap
39descriptor.
40.SH RETURN VALUE
41.B pcap_get_tstamp_precision()
42returns
43.B PCAP_TSTAMP_PRECISION_MICRO
44or
45.BR PCAP_TSTAMP_PRECISION_NANO ,
46which indicates
47that pcap captures contains time stamps in microseconds or nanoseconds
48respectively.
49.SH SEE ALSO
50pcap(3PCAP),
51pcap_set_tstamp_precision(3PCAP),
52pcap-tstamp(7)