AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Functions
alexaClientSDK::acsdkAssets::common::jitterUtil Namespace Reference

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)
 

Function Documentation

◆ expJitter()

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

Parameters
baseValuevalue to base off of
jitterFactorexponentially increases baseValue by this amount with jitter
Returns

◆ 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

Parameters
baseValuevalue to base off of
jitterFactorfactor of jitter from baseValue, 0 > and < 1
Returns

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0