Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
25e92552
Commit
25e92552
authored
Jul 25, 2014
by
Raymond Knopp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5602
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
0f176545
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
targets/RT/USER/rt_wrapper.c
targets/RT/USER/rt_wrapper.c
+1
-1
No files found.
targets/RT/USER/rt_wrapper.c
View file @
25e92552
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment