From 40c7d508692ec158927df3f5e2e67800f9556370 Mon Sep 17 00:00:00 2001 From: Kevron Rees Date: Wed, 14 Jan 2015 15:04:00 -0800 Subject: Request history data with system time, not steady time --- plugins/examplesink.cpp | 28 ++++++++++++++-------------- 1 file 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); -- cgit v1.2.1