Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
epan
timestats.h
Go to the documentation of this file.
1
12
#ifndef __TIMESTATS_H__
13
#define __TIMESTATS_H__
14
15
#include "
epan/packet_info.h
"
16
#include "
wsutil/nstime.h
"
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
/* __cplusplus */
21
22
/* Summary of time statistics*/
23
typedef
struct
_timestat_t
{
24
uint32_t num;
/* number of samples */
25
uint32_t min_num;
/* frame number of minimum */
26
uint32_t max_num;
/* frame number of maximum */
27
nstime_t
min;
28
nstime_t
max;
29
nstime_t
tot;
30
double
variance;
31
}
timestat_t
;
23
typedef
struct
_timestat_t
{
…
};
32
33
/* functions */
34
35
/* Initialize a timestat_t struct */
36
WS_DLL_PUBLIC
void
time_stat_init(
timestat_t
*stats);
37
38
/* Update a timestat_t struct with a new sample */
39
WS_DLL_PUBLIC
void
time_stat_update(
timestat_t
*stats,
const
nstime_t
*delta,
packet_info
*pinfo);
40
41
WS_DLL_PUBLIC
double
get_average(
const
nstime_t
*sum, uint32_t num);
42
43
#ifdef __cplusplus
44
}
45
#endif
/* __cplusplus */
46
47
#endif
/* __TIMESTATS_H__ */
nstime.h
packet_info.h
_packet_info
Definition
packet_info.h:43
_timestat_t
Definition
timestats.h:23
nstime_t
Definition
nstime.h:26
Generated by
1.9.8