Commit ad376cf2 authored by Ghislain MARY's avatar Ghislain MARY

Define ms_get_cur_time_ms().

parent 31e57342
......@@ -104,6 +104,7 @@ static inline void ms_debug(const char *fmt,...)
typedef ortpTimeSpec MSTimeSpec;
#define ms_get_cur_time ortp_get_cur_time
#define ms_get_cur_time_ms ortp_get_cur_time_ms
struct _MSList {
struct _MSList *next;
......
......@@ -296,9 +296,7 @@ static void remove_tasks_for_filter(MSTicker *ticker, MSFilter *f){
}
static uint64_t get_cur_time_ms(void *unused){
MSTimeSpec ts;
ms_get_cur_time(&ts);
return (ts.tv_sec*1000LL) + ((ts.tv_nsec+500000LL)/1000000LL);
return ms_get_cur_time_ms();
}
static void sleepMs(int ms){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment