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

Method getTimeRange

app/src/API/Handlers/DashboardHandler.cpp:377–388  ·  view source on GitHub ↗

* @brief Get the current visible plot time window in seconds */

Source from the content-addressed store, hash-verified

375 * @brief Get the current visible plot time window in seconds
376 */
377API::CommandResponse API::Handlers::DashboardHandler::getTimeRange(const QString& id,
378 const QJsonObject& params)
379{
380 Q_UNUSED(params)
381
382 const double seconds = UI::Dashboard::instance().plotTimeRange();
383
384 QJsonObject result;
385 result[QStringLiteral("seconds")] = seconds;
386
387 return CommandResponse::makeSuccess(id, result);
388}
389
390/**
391 * @brief Get all dashboard configuration settings

Callers

nothing calls this directly

Calls 1

plotTimeRangeMethod · 0.45

Tested by

no test coverage detected