Go to the documentation of this file.
13 #define USECS_PER_SEC 1000000
22 struct timeval current_time;
26 return_value.sec = current_time.tv_sec;
27 return_value.usec = current_time.tv_usec;
33 struct timeval start_time;
34 struct timeval timeout;
35 struct timeval stop_time;
40 timeradd (&start_time, &timeout, &stop_time);
42 self->stop_time.sec = stop_time.tv_sec;
43 self->stop_time.usec = stop_time.tv_usec;
48 struct timeval current_time;
49 struct timeval stop_time;
50 int is_not_yet_expired;
53 stop_time.tv_sec =
self->stop_time.sec;
54 stop_time.tv_usec =
self->stop_time.usec;
55 is_not_yet_expired =
timercmp (¤t_time, &stop_time, <);
57 return is_not_yet_expired ==
FALSE;
62 RtSleepEx (usec / 1000);
static int64_t sysfrequency
osal_mutex_t * osal_mtx_create(void)
int osal_usleep(uint32 usec)
int osal_gettimeofday(struct timeval *tv, struct timezone *tz)
ec_timet osal_current_time(void)
int osal_mtx_lock_timeout(osal_mutex_t *mtx, uint32_t time_ms)
void osal_timer_start(osal_timert *self, uint32 timeout_usec)
void osal_mtx_unlock(osal_mutex_t *mtx)
#define timeradd(a, b, result)
#define timercmp(a, b, CMP)
int gettimeofday(struct timeval *tp, void *tzp)
void osal_mtx_lock(osal_mutex_t *mtx)
boolean osal_timer_is_expired(osal_timert *self)
soem
Author(s): Arthur Ketels and M.J.G. van den Molengraft
autogenerated on Wed Mar 2 2022 01:01:49