testing ...

This commit is contained in:
Gerhard Hoffmann 2023-11-27 16:16:50 +01:00
parent 9ca45e613f
commit 2d9ed3c1c8

View File

@ -50,9 +50,12 @@ int main() {
if (isParsed)
{
QDateTime start = QDateTime::fromString("2023-05-11T08:00:00",Qt::ISODate);
QDateTime start = QDateTime::fromString("2023-11-27T17:50:00",Qt::ISODate);
//QDateTime start = QDateTime::currentDateTime();
QDateTime end = start.addSecs(120);
calculator.GetCostFromDuration(&cfg, 3, start, end, 60);
uint32_t cost = calculator.GetCostFromDuration(&cfg, 3, start, end, 60);
qCritical() << "cost=" << cost;
qCritical() << "end=" << end;
}
return 0;