summaryrefslogtreecommitdiff
path: root/docs/ref/util/nng_msleep.adoc
blob: 83e69c601d2c725e5a9a3c45f78347bcbffd4cdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## nng_msleep

Sleep milliseconds.

### Synopsis

```c
#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>

void nng_msleep(nng_duration msec);
```

### Description

The `nng_msleep` blocks the caller for at least _msec_ milliseconds.footnote:[This function may block for longer than requested.
The actual wait time is determined by the timer resolution of the underlying system.]

### See Also

xref:../aio/nng_sleep_aio.adoc[nng_sleep_aio],
xref:nng_clock.adoc[nng_clock]