diff options
author | Kevron Rees <tripzero.kev@gmail.com> | 2016-04-03 16:36:30 -0700 |
---|---|---|
committer | Kevron Rees <tripzero.kev@gmail.com> | 2016-04-03 16:36:30 -0700 |
commit | c4e2169481c493b542638b55289b3298d8734ba9 (patch) | |
tree | 73a1a0849e9914857988dc703a2d8ba49cafad13 /lib/timestamp.cpp | |
parent | e480af61dc4ba531c8113d54bb859d8fc409a1ee (diff) | |
download | automotive-message-broker-c4e2169481c493b542638b55289b3298d8734ba9.tar.gz |
fix can error. fix cmake plugin_install_dir
can: add bcm_timestamp conversion. timeval to bcm_timeval conversion doesn't work with new gcc
cmake: Fix install path for plugins. Was not being populated properly
Diffstat (limited to 'lib/timestamp.cpp')
-rw-r--r-- | lib/timestamp.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/timestamp.cpp b/lib/timestamp.cpp index 7b1f5931..9c25902d 100644 --- a/lib/timestamp.cpp +++ b/lib/timestamp.cpp @@ -68,3 +68,8 @@ struct ::timeval amb::Timestamp::toTimeval(const double time) { return { (__time_t) time, (__suseconds_t)fmod(time*1e6, 1e6) }; } + +struct ::bcm_timeval amb::Timestamp::toBcmTimeval(const double time) +{ + return { (long) time, (long)fmod(time*1e6, 1e6) }; +} |