AlexaClientSDK
1.22.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <SystemClockMonitor.h>
Public Member Functions | |
void | notifySystemClockSynchronized () |
void | addSystemClockMonitorObserver (const std::shared_ptr< avsCommon::sdkInterfaces::SystemClockMonitorObserverInterface > &observer) |
void | removeSystemClockMonitorObserver (const std::shared_ptr< avsCommon::sdkInterfaces::SystemClockMonitorObserverInterface > &observer) |
Static Public Member Functions | |
static std::shared_ptr< SystemClockMonitor > | createSystemClockMonitor () |
This class monitors the system clock. When the system clock is synchronized, this class notifies its observers of the synchronization.
void alexaClientSDK::avsCommon::utils::timing::SystemClockMonitor::addSystemClockMonitorObserver | ( | const std::shared_ptr< avsCommon::sdkInterfaces::SystemClockMonitorObserverInterface > & | observer | ) |
Add an observer to the system clock monitor
observer | The observer to add to our set |
|
static |
Factory method that creates a new SystemClockMonitor
.
SystemClockMonitor
. void alexaClientSDK::avsCommon::utils::timing::SystemClockMonitor::notifySystemClockSynchronized | ( | ) |
Should be called when the device clock has synchronized (ex. ntp time sync)
void alexaClientSDK::avsCommon::utils::timing::SystemClockMonitor::removeSystemClockMonitorObserver | ( | const std::shared_ptr< avsCommon::sdkInterfaces::SystemClockMonitorObserverInterface > & | observer | ) |
Remove an observer to the system clock monitor
observer | The observer to remove from our set |
AlexaClientSDK 1.22.0 - Copyright 2016-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0