Commit 20d21d24 authored by Martin Schultz's avatar Martin Schultz

refs #2421

* display loading information in loginfo (filename plugin name time)


git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@20838 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e993f195
......@@ -60,6 +60,7 @@
#include <ObjectTypes/PolyMesh/PolyMesh.hh>
#include <OpenFlipper/common/DataTypes.hh>
#include <time.h>
void Core::resetScenegraph( bool _resetTrackBall ) {
......@@ -503,7 +504,10 @@ void Core::slotLoad(QString _filename, int _pluginID) {
}
//load file
time_t start = clock();
int id = supportedTypes()[_pluginID].plugin->loadObject(_filename);
time_t end = clock();
emit log(LOGINFO,tr("Loading %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 ( id != -1 )
......
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