26 #include <freeradius-devel/util/strerror.h>
27 #include <freeradius-devel/util/time.h>
28 #include <freeradius-devel/util/timeval.h>
38 out->tv_sec = end->tv_sec - start->tv_sec;
39 if (
out->tv_sec > 0) {
45 out->tv_usec += end->tv_usec;
46 out->tv_usec -= start->tv_usec;
68 sec = strtoul(
in, &end, 10);
77 if (*end && (*end !=
'.'))
goto failed;
82 len = strlen(end + 1);
93 sec = strtoul(end + 1, &end, 10);
int fr_timeval_from_str(struct timeval *out, char const *in)
Create timeval from a string.
void fr_timeval_subtract(struct timeval *out, struct timeval const *end, struct timeval const *start)
Subtract one timeval from another.
#define fr_strerror_printf(_fmt,...)
Log to thread local error buffer.
#define fr_strerror_const(_msg)
static size_t char ** out