* @brief Computes duration between two ISO8601 timestamps in milliseconds. */
| 38 | * @brief Computes duration between two ISO8601 timestamps in milliseconds. |
| 39 | */ |
| 40 | static qint64 computeDurationMs(const QString& startedIso, const QString& endedIso) |
| 41 | { |
| 42 | const auto start = QDateTime::fromString(startedIso, Qt::ISODate); |
| 43 | const auto end = QDateTime::fromString(endedIso, Qt::ISODate); |
| 44 | if (!start.isValid() || !end.isValid()) |
| 45 | return 0; |
| 46 | |
| 47 | return start.msecsTo(end); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * @brief Loads the session header row into out, returning false on missing session. |
no test coverage detected