'\" t .\" Title: nng_duration .\" Author: [see the "AUTHOR(S)" section] .\" Generator: Asciidoctor 2.0.23 .\" Date: 2025-02-02 .\" Manual: NNG Reference Manual .\" Source: \ \& .\" Language: English .\" .TH "NNG_DURATION" "5" "2025-02-02" "\ \&" "NNG Reference Manual" .ie \n(.g .ds Aq \(aq .el .ds Aq ' .ss \n[.ss] 0 .nh .ad l .de URL \fI\\$2\fP <\\$1>\\$3 .. .als MTO URL .if \n[.g] \{\ . mso www.tmac . am URL . ad l . . . am MTO . ad l . . . LINKSTYLE blue R < > .\} .SH "NAME" nng_duration \- relative time in milliseconds .SH "SYNOPSIS" .sp .if n .RS 4 .nf .fam C #include <nng/nng.h> typedef int32_t nng_duration; #define NNG_DURATION_INFINITE (\-1) #define NNG_DURATION_DEFAULT\& (\-2) #define NNG_DURATION_ZERO\& (0) .fam .fi .if n .RE .SH "DESCRIPTION" .sp An \f(CRnng_duration\fP is a relative time, measured in milliseconds. This type is most often used in conjunction with timers and timeouts. .sp A couple of special values have been set aside, and carry special meanings. .sp \f(CRNNG_DURATION_DEFAULT\fP .RS 4 Indicates a context\-specific default value should be used. .RE .sp \f(CRNNG_DURATION_INFINITE\fP .RS 4 Effectively an infinite duration; used most often to disable timeouts. .RE .sp \f(CRNNG_DURATION_ZERO\fP .RS 4 Zero length duration; used to perform a single polling operation. .RE .SH "SEE ALSO" .sp nng_options(5), nng(7)