Commit 9ec3f955 authored by Martin Schultz's avatar Martin Schultz

refs #2421

* info log displays the time needed to save objects

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20918 383ad7c9-94d9-4d36-a494-682f7c89f535
parent f54088bd
......@@ -137,8 +137,11 @@ void Core::saveObject( int _id, QString _filename, int _pluginID ) {
coreWidget_->setStatus(ApplicationStatus::PROCESSING );
}
time_t start = clock();
//save object
bool ok = supportedTypes()[_pluginID].plugin->saveObject(_id,_filename);
time_t end = clock();
emit log(LOGINFO,tr("Saving %1 with Plugin %2 took %3 seconds.").arg(_filename).arg(supportedTypes()[_pluginID].name).arg((double)(end-start)/CLOCKS_PER_SEC) );
if ( OpenFlipper::Options::gui() ) {
if (ok)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment