MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / progress

Method progress

app/src/CSV/Player.cpp:87–94  ·  view source on GitHub ↗

* @brief Returns the CSV playback progress in the range 0.0 to 1.0. */

Source from the content-addressed store, hash-verified

85 * @brief Returns the CSV playback progress in the range 0.0 to 1.0.
86 */
87double CSV::Player::progress() const
88{
89 const auto count = frameCount();
90 if (count <= 0)
91 return 0.0;
92
93 return static_cast<double>(framePosition()) / count;
94}
95
96/**
97 * @brief Returns whether playback is currently active.

Callers 6

jquery.jsFile · 0.45
ltFunction · 0.45
setProgressMethod · 0.45
getStatusMethod · 0.45
setProgressMethod · 0.45
getStatusMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected