Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
robotpkg-wip
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gepetto
robotpkg-wip
Commits
88c2a0e6
Commit
88c2a0e6
authored
11 years ago
by
Pierrick Koch
Browse files
Options
Downloads
Patches
Plain Diff
[wip/libnabo] patch patch for bsd, clock
parent
739cc65b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libnabo/distinfo
+1
-1
1 addition, 1 deletion
libnabo/distinfo
libnabo/patches/patch-ab
+14
-10
14 additions, 10 deletions
libnabo/patches/patch-ab
with
15 additions
and
11 deletions
libnabo/distinfo
+
1
−
1
View file @
88c2a0e6
...
...
@@ -2,4 +2,4 @@ SHA1 (libnabo-1.0.4.tar.gz) = 1f71f0f6caf50996e3e61b87b2ac2c05c834518e
RMD160 (libnabo-1.0.4.tar.gz) = 5e025ce60f8c773178ce8c1ef7328608a16b63ca
Size (libnabo-1.0.4.tar.gz) = 963380 bytes
SHA1 (patch-aa) = fe3c4640351d88000aa694055468612a7c25ce43
SHA1 (patch-ab) = 1
c3719d4fc4df6ad80cf7c76df354297574bf882
SHA1 (patch-ab) = 1
9ee0764786c7759384c0bca543db1a0d02594a8
This diff is collapsed.
Click to expand it.
libnabo/patches/patch-ab
+
14
−
10
View file @
88c2a0e6
diff --git tests/helpers.h tests/helpers.h
index 9f0a2f6..
1f65fa2
100644
index 9f0a2f6..
edb25d4
100644
--- tests/helpers.h
+++ tests/helpers.h
@@ -125,6 +125,8 @@
typename NearestNeighbourSearch<T>::Matrix createQuery(const typename NearestNei
#ifdef __MACH__
#include <mach/clock.h>
#include <mach/mach.h>
+#else
+#include <time.h>
#endif
#ifdef _POSIX_TIMERS
@@ -155,8 +155,12 @@
namespace boost
mach_port_deallocate(mach_task_self(), cclock);
#else
struct timespec ts;
+ #ifdef __NetBSD__
+ clock_gettime(CLOCK_PROF, &ts);
+ #else
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &ts);
#endif
+ #endif
return Time(ts.tv_sec) * Time(1000000000) + Time(ts.tv_nsec);
}
Time _start_time;
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