# nng_msleep ## NAME nng_msleep --- sleep milliseconds ## SYNOPSIS ```c #include typedef int64_t nng_duration; void nng_msleep(nng_duration msec); ``` ## DESCRIPTION The {{i:`nng_msleep`}}{{hi:sleep}} 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] [nng_clock]: ../util/nng_clock.md [nng_sleep_aio]: ../aio/nng_sleep_aio.md