Commit 25e92552 authored by Raymond Knopp's avatar Raymond Knopp

git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5602 818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent 0f176545
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#ifndef RTAI #ifndef RTAI
struct timespec interval, next, now, res; 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) { RTIME rt_get_time_ns (void) {
clock_gettime(clock_id, &now); clock_gettime(clock_id, &now);
return(now.tv_sec*1e9+now.tv_nsec); return(now.tv_sec*1e9+now.tv_nsec);
......
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