Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RobotAPI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
RobotAPI
Commits
7b2af2e4
Commit
7b2af2e4
authored
1 year ago
by
Christoph Pohl
Browse files
Options
Downloads
Patches
Plain Diff
Allow for usage of different clocks in armarx::rtNow()
parent
b878aa0e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
source/RobotAPI/components/units/RobotUnit/util/RtTiming.h
+2
-2
2 additions, 2 deletions
source/RobotAPI/components/units/RobotUnit/util/RtTiming.h
with
2 additions
and
2 deletions
source/RobotAPI/components/units/RobotUnit/util/RtTiming.h
+
2
−
2
View file @
7b2af2e4
...
...
@@ -36,11 +36,11 @@ namespace armarx
}
// namespace rt_timing::constants
inline
IceUtil
::
Time
rtNow
()
rtNow
(
clockid_t
clockId
=
CLOCK_MONOTONIC_RAW
)
{
using
namespace
rt_timing
::
constants
;
struct
timespec
ts
;
clock_gettime
(
CLOCK_MONOTONIC_RAW
,
&
ts
);
clock_gettime
(
clockId
,
&
ts
);
return
IceUtil
::
Time
::
microSeconds
(
ts
.
tv_sec
*
seconds2MicroSeconds
+
ts
.
tv_nsec
/
nanoSeconds2MicroSeconds
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment