AlexaClientSDK  1.26.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
List of all members
alexaClientSDK::captions::SystemClockDelay Class Reference

#include <SystemClockDelay.h>

Inheritance diagram for alexaClientSDK::captions::SystemClockDelay:
Inheritance graph
Collaboration diagram for alexaClientSDK::captions::SystemClockDelay:
Collaboration graph

Public Member Functions

DelayInterface methods
void delay (std::chrono::milliseconds milliseconds) override
- Public Member Functions inherited from alexaClientSDK::captions::DelayInterface
virtual ~DelayInterface ()=default

Detailed Description

Concrete implementation of the DelayInterface, using std::this_thread::sleep_for().

Member Function Documentation

◆ delay()

void alexaClientSDK::captions::SystemClockDelay::delay ( std::chrono::milliseconds  milliseconds)

When called, this function should cause a delay for the given number of milliseconds. This function can be overridden to allow for slower or faster delays if desired. The milliseconds parameter should be checked that it is positive; no delay should occur if it is negative.

millisecondsThe amount of time to delay.

Implements alexaClientSDK::captions::DelayInterface.

The documentation for this class was generated from the following files:

AlexaClientSDK 1.26.0 - Copyright 2016-2021, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0