From b8eb0e113f3972ded2bcee26cb23c2af60da77c9 Mon Sep 17 00:00:00 2001 From: Phil Olynyk Date: Mon, 10 Jan 2022 18:02:25 -0500 Subject: [PATCH] Move mis-placed QTime decls into EFFICIENY ifdef --- oscar/SleepLib/loader_plugins/resmed_loader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/oscar/SleepLib/loader_plugins/resmed_loader.cpp b/oscar/SleepLib/loader_plugins/resmed_loader.cpp index 0078217b..30b2bbf2 100644 --- a/oscar/SleepLib/loader_plugins/resmed_loader.cpp +++ b/oscar/SleepLib/loader_plugins/resmed_loader.cpp @@ -906,7 +906,9 @@ void ResmedLoader::checkSummaryDay( ResMedDay & resday, QDate date, Machine * ma /////////////////////////////////////////////////////////////////////////////////////////// int ResmedLoader::ScanFiles(Machine * mach, const QString & datalog_path, QDate firstImport) { +#ifdef DEBUG_EFFICIENCY QTime time; +#endif bool create_backups = p_profile->session->backupCardData(); QString backup_path = mach->getBackupPath(); @@ -2981,10 +2983,10 @@ bool ResmedLoader::LoadBRP(Session *sess, const QString & path) int edfparsetime = time.elapsed(); time.start(); int AddWavetime = 0; + QTime time2; #endif sess->updateFirst(edf.startdate); - QTime time2; qint64 duration = edf.GetNumDataRecords() * edf.GetDurationMillis(); sess->updateLast(edf.startdate + duration);