AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
Functions | |
std::chrono::milliseconds | jitter (std::chrono::milliseconds baseValue, float jitterFactor=0.2) |
std::chrono::milliseconds | expJitter (std::chrono::milliseconds baseValue, float jitterFactor=0.2) |
std::chrono::milliseconds alexaClientSDK::acsdkAssets::common::jitterUtil::expJitter | ( | std::chrono::milliseconds | baseValue, |
float | jitterFactor = 0.2 |
||
) |
Provides a time delay off baseValue with some jitteriness and 2x exponential back-off
baseValue | value to base off of |
jitterFactor | exponentially increases baseValue by this amount with jitter |
std::chrono::milliseconds alexaClientSDK::acsdkAssets::common::jitterUtil::jitter | ( | std::chrono::milliseconds | baseValue, |
float | jitterFactor = 0.2 |
||
) |
Provides a time delay off baseValue with some jitteriness
baseValue | value to base off of |
jitterFactor | factor of jitter from baseValue, 0 > and < 1 |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0