void nmsg_rate_destroy(nmsg_rate_t *r)
Destroy an nmsg_rate_t object.
void nmsg_rate_sleep(nmsg_rate_t r)
Sleep if necessary to maintain the target rate limit.
nmsg_rate_t nmsg_rate_init(unsigned rate, unsigned freq)
Initialize a new nmsg_rate_t object.