git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5602 818b1a75-f10b-46b9-bf7c-635c3b92a50f

This commit is contained in:
Raymond Knopp
2014-07-25 07:57:41 +00:00
parent 0f17654595
commit 25e92552f8
+1 -1
View File
@@ -43,7 +43,7 @@
#ifndef RTAI
struct timespec interval, next, now, res;
clockid_t clock_id = CLOCK_REALTIME; //other options are CLOCK_MONOTONIC, CLOCK_REALTIME, CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID
clockid_t clock_id = CLOCK_MONOTONIC; //other options are CLOCK_MONOTONIC, CLOCK_REALTIME, CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID
RTIME rt_get_time_ns (void) {
clock_gettime(clock_id, &now);
return(now.tv_sec*1e9+now.tv_nsec);