summaryrefslogtreecommitdiff
path: root/docs/reference/src/util/nng_msleep.md
blob: add422fa302afd30d4f8f177ab4a52b83f133268 (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_msleep

## NAME

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.

> [!NOTE]
> This function may block for longer than requested.
> The actual wait time is determined by the capabilities of the
> underlying system.

## SEE ALSO

[nng_sleep_aio][nng_sleep_aio],
[nng_clock][nng_clock]

{{#include ../refs.md}}