void Profiler::start(std::string const& eventName) { if (!isEnabled) { return; } Lock lock(mMutex); checkRegistered(eventName); mStartTimes[eventName] = ci::app::getElapsedSeconds(); mCumulativeDurationThisUpdate.emplace(eventName, 0.); }
CMainWindow::CMainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::CMainWindow) { ui->setupUi(this); m_AmendedFields = new QList<QString>(); m_AmendedCharts = new QList<QString>(); mdb = new CDatabaseManager(this); mnet = new CNetworkManager(this); mopt = new COptions(this); setupMenu(); SetupTree(); m_settings = mopt->settings(); if(!checkRegistered()) { //Registrierungsmaske aufrufen. CRegister lreg(this); lreg.exec(); } }