diff options
author | Kevron Rees <kevron.m.rees@intel.com> | 2015-01-14 15:04:00 -0800 |
---|---|---|
committer | Kevron Rees <kevron.m.rees@intel.com> | 2015-01-14 15:40:59 -0800 |
commit | 40c7d508692ec158927df3f5e2e67800f9556370 (patch) | |
tree | e5d2ac8b989fbf89437127844f875c3397e0be57 | |
parent | b105deef32daf8b754e3f65a861bb8399f4cbc1d (diff) | |
download | automotive-message-broker-40c7d508692ec158927df3f5e2e67800f9556370.tar.gz |
Request history data with system time, not steady time
-rw-r--r-- | plugins/examplesink.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/examplesink.cpp b/plugins/examplesink.cpp index 02e018d1..6805d259 100644 --- a/plugins/examplesink.cpp +++ b/plugins/examplesink.cpp @@ -1,19 +1,19 @@ /* - Copyright (C) 2012 Intel Corporation + Copyright (C) 2012 Intel Corporation - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ @@ -169,8 +169,8 @@ void ExampleSink::supportedChanged(const PropertyList & supportedProperties) AsyncRangePropertyRequest vehicleSpeedFromLastWeek; - vehicleSpeedFromLastWeek.timeBegin = amb::currentTime() - 10; - vehicleSpeedFromLastWeek.timeEnd = amb::currentTime(); + vehicleSpeedFromLastWeek.timeBegin = amb::Timestamp::instance()->epochTime() - 10; + vehicleSpeedFromLastWeek.timeEnd = amb::Timestamp::instance()->epochTime(); PropertyList requestList; requestList.push_back(VehicleProperty::VehicleSpeed); |