Defines | Typedefs | Functions

time helper
[LIM utility library]

Defines

#define ltime_gettimeofday(tv)   gettimeofday(tv, NULL)
#define ltime_tv2us(tv)   ((int64_t)((tv)->tv_sec) * 1000000 + (tv)->tv_usec)
#define ltime_tv2ms(tv)   (ltime_tv2us(tv) / 1000)

Typedefs

typedef struct timeval ltime_val_t

Functions

void ltime_ms2timespec (int ms, struct timespec *ts)

Define Documentation

#define ltime_gettimeofday (   tv  )     gettimeofday(tv, NULL)
#define ltime_tv2ms (   tv  )     (ltime_tv2us(tv) / 1000)

convert time value to millisecond.

#define ltime_tv2us (   tv  )     ((int64_t)((tv)->tv_sec) * 1000000 + (tv)->tv_usec)

convert time value to microsecond.


Typedef Documentation

typedef struct timeval ltime_val_t

Function Documentation

void ltime_ms2timespec ( int  ms,
struct timespec *  ts 
)

convert milisecond to struct timespec value.

LIMOpenMAX Implementation API Reference - Generated by doxygen