36typedef long long suseconds_t;
41inline int gettimeofday(
struct timeval* tp,
void* tzp)
47 tp->tv_sec = t / 1000;
48 tp->tv_usec = t % 1000;
int64_t utime_get_useconds(int64_t v)
void utime_to_timeval(int64_t v, struct timeval *tv)
int32_t timeutil_usleep(int64_t useconds)
timeutil_rest_t * timeutil_rest_create(void)
bool timeutil_timer_timeout(timeutil_rest_t *rest, double timeout_s)
void timeutil_timer_start(timeutil_rest_t *rest)
void timeutil_rest_destroy(timeutil_rest_t *rest)
int32_t timeutil_sleep_hz(timeutil_rest_t *rest, double hz)
void utime_to_timespec(int64_t v, struct timespec *ts)
void timeutil_timer_reset(timeutil_rest_t *rest)
uint32_t timeutil_sleep(unsigned int seconds)
struct timeutil_rest timeutil_rest_t
Definition time_util.h:60
int64_t time_util_hhmmss_ss_to_utime(double time)
int64_t utime_get_seconds(int64_t v)
void timeutil_timer_stop(timeutil_rest_t *rest)
int64_t timeutil_ms_to_us(int32_t ms)