diff --git a/Graphs/gGraphView.cpp b/Graphs/gGraphView.cpp index b9b702be..ea5cdf66 100644 --- a/Graphs/gGraphView.cpp +++ b/Graphs/gGraphView.cpp @@ -2,8 +2,6 @@ #include #include "gGraphView.h" #include "SleepLib/profiles.h" -//#include -#include bool _graph_init=false; QFont * defaultfont=NULL; @@ -1256,7 +1254,7 @@ void gGraphView::paintGL() if (width()<=0) return; if (height()<=0) return; - QElapsedTimer time; + QTime time; time.start(); glClearColor(255,255,255,255); diff --git a/oximetry.cpp b/oximetry.cpp index b2381c94..39dfd450 100644 --- a/oximetry.cpp +++ b/oximetry.cpp @@ -189,7 +189,7 @@ void Oximetry::on_RunButton_toggled(bool checked) ev_spo2->getTime().clear(); ev_spo2->setCount(0); - lasttime=QDateTime::currentMSecsSinceEpoch(); + lasttime=qint64(QDateTime::currentDateTime().toTime_t())*1000L; // utc?? starttime=lasttime; session->SetSessionID(lasttime/1000L); @@ -622,7 +622,7 @@ void Oximetry::on_ImportButton_clicked() if (done) { if (oneoff) bytes--; // this is retarded.. - QDateTime date=QDateTime::currentDateTimeUtc(); + QDateTime date=QDateTime::currentDateTime().toUTC(); SessionID sid=date.toTime_t(); session->SetSessionID(sid); qDebug() << "Read " << bytes << "Bytes";