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:48:19 -0800 |
commit | 03a2442c09102d0df348f103f5e4296ea4d2ebc5 (patch) | |
tree | 2fbc2dd32a028d3b04e5de731a08ae0747639a01 | |
parent | 85f4c34547f6f5165e21b16f45ea591348e09e2e (diff) | |
download | automotive-message-broker-03a2442c09102d0df348f103f5e4296ea4d2ebc5.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 bd0afef4..f696479d 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); |