17#ifndef NMSG_TIMESPEC_H
18#define NMSG_TIMESPEC_H
void nmsg_timespec_sleep(const struct timespec *ts)
Sleep.
void nmsg_timespec_sub(const struct timespec *a, struct timespec *b)
Subtract timespec a from b, placing result in b.
void nmsg_timespec_add(const struct timespec *a, struct timespec *b)
Add timespecs a and b, placing result in b.
void nmsg_timespec_from_double(double seconds, struct timespec *ts)
Convert floating point number of seconds to timespec.
void nmsg_timespec_get(struct timespec *ts)
Get the current time.
double nmsg_timespec_to_double(const struct timespec *ts)
Convert timespec to floating point representation.