AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Classes | Functions
alexaClientSDK::avsCommon::utils::timing Namespace Reference

Namespaces

 test
 

Classes

class  MultiTimer
 
class  SafeCTimeAccess
 
class  Stopwatch
 
class  TimePoint
 
class  Timer
 Timer to schedule task for delayed and periodic execution. More...
 
class  TimerDelegate
 
class  TimerDelegateFactory
 
class  TimeUtils
 

Functions

std::chrono::steady_clock::time_point getDistantFuture ()
 

Function Documentation

◆ getDistantFuture()

std::chrono::steady_clock::time_point alexaClientSDK::avsCommon::utils::timing::getDistantFuture ( )
inline

Get a consistent future steady_clock::time_point that we deem unreachable (110+ years), avoiding steady_clock::time_point::max() which results in an overflow due to a gcc bug.

See also
https://gcc-bugs.gcc.gnu.narkive.com/LBRgUQhD/bug-c-58931-new-condition-variable-wait-until-overflowed-by-large-time-point-steady-clock
Returns
Get a consistent steady_clock::time_point that we deem unreachable.

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