summaryrefslogtreecommitdiff
path: root/lib/timestamp.cpp
diff options
context:
space:
mode:
authorKevron Rees <tripzero.kev@gmail.com>2016-04-03 16:36:30 -0700
committerKevron Rees <tripzero.kev@gmail.com>2016-04-03 16:36:30 -0700
commitc4e2169481c493b542638b55289b3298d8734ba9 (patch)
tree73a1a0849e9914857988dc703a2d8ba49cafad13 /lib/timestamp.cpp
parente480af61dc4ba531c8113d54bb859d8fc409a1ee (diff)
downloadautomotive-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.cpp5
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) };
+}