nng_clock()
NAME
nng_clock - get time
SYNOPSIS
#include <nng/nng.h>
#include <nng/supplemental/util/platform.h>
typedef uint64_t nng_time;
nng_time nng_clock(void);
DESCRIPTION
The nng_clock() function 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.
note
The reference time will be the same for a given program, but different programs may have different references.
This function is intended to help with setting appropriate
timeouts using nng_cv_until().
RETURN VALUES
Milliseconds since reference time.