blob: 5e4da8f91021f6cd88115786a9eda386fecdfa0a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
## nng_stat_value
Get statistic numeric value.
### Synopsis
```c
#include <nng/nng.h>
typedef struct nng_stat nng_stat;
uint64_t nng_stat_value(nng_stat *stat);
```
### Description
The `nng_stat_value` function returns a numeric value for the statistic _stat_.
If the statistic is not of numeric type, then zero is returned.
See xref:nng_stat_type.adoc[`nng_stat_type`] for a description of statistic types.
### Return Values
The numeric value associated with _stat_.
### See Also
xref:nng_stats_get.adoc[nng_stats_get],
xref:nng_stat_bool.adoc[nng_stat_bool],
xref:nng_stat_type.adoc[nng_stat_type],
xref:nng_stat_unit.adoc[nng_stat_unit]
|