Skip to content

Latest commit

 

History

History
57 lines (41 loc) · 1.36 KB

nng_clock.3supp.adoc

File metadata and controls

57 lines (41 loc) · 1.36 KB

nng_clock(3supp)

NAME

nng_clock - get time

SYNOPSIS

#include <nng/nng.h>

typedef uint64_t nng_time;

nng_time nng_clock(void);

DESCRIPTION

The nng_clock() returns the number of elapsed milliseconds since some arbitrary time in the past. The resolution of the clock depends on the underlying timing facilities of the system. This function may be used for timing, but applications should not expect very fine-grained values.

Important
The reference time will be the same for a given program, but different programs may have different references.
Tip
This function should help with setting appropriate timeouts.

RETURN VALUES

Milliseconds since reference time.

ERRORS

None.