![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <Stopwatch.h>
Public Member Functions | |
Stopwatch () | |
bool | start () |
bool | pause () |
bool | resume () |
void | stop () |
void | reset () |
std::chrono::milliseconds | getElapsed () |
Class to provide simple stopwatch functionality.
alexaClientSDK::avsCommon::utils::timing::Stopwatch::Stopwatch | ( | ) |
Constructor. Stopwatch instances are created ready for a call to start
.
std::chrono::milliseconds alexaClientSDK::avsCommon::utils::timing::Stopwatch::getElapsed | ( | ) |
bool alexaClientSDK::avsCommon::utils::timing::Stopwatch::pause | ( | ) |
void alexaClientSDK::avsCommon::utils::timing::Stopwatch::reset | ( | ) |
Reset elapsed time, prepare for start()
. Valid after all other calls.
bool alexaClientSDK::avsCommon::utils::timing::Stopwatch::resume | ( | ) |
Resume marking time. Only valid if called after pause()
.
bool alexaClientSDK::avsCommon::utils::timing::Stopwatch::start | ( | ) |
Start marking time. Only valid if called when the stopwatch is new or reset().
void alexaClientSDK::avsCommon::utils::timing::Stopwatch::stop | ( | ) |
Stop marking time. Valid after all other calls.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0