X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIOWxGimmickView.cpp;fp=src%2FcreaImageIOWxGimmickView.cpp;h=d9f727cc56096b3acadd402892a59e2c1943ea98;hb=80dc7421c0a44fa7f37d19c7c5752ff6d0c0d38c;hp=f13c5e01823351ee46f29f898654879d85e07d42;hpb=994ec3301ff97e273e8d8588bdda50023d0f6402;p=creaImageIO.git diff --git a/src/creaImageIOWxGimmickView.cpp b/src/creaImageIOWxGimmickView.cpp index f13c5e0..d9f727c 100644 --- a/src/creaImageIOWxGimmickView.cpp +++ b/src/creaImageIOWxGimmickView.cpp @@ -113,6 +113,7 @@ namespace creaImageIO // Sets the current directory to the home dir mCurrentDirectory = std2wx(gimmick->GetHomeDirectory()); + // Connect the AddProgress callback gimmick->ConnectAddProgressObserver ( boost::bind( &WxGimmickView::OnAddProgress , this, _1 ) ); @@ -535,6 +536,7 @@ namespace creaImageIO if (FD->ShowModal()==wxID_OK) { + time(&mstart); std::string dirname = wx2std (FD->GetPath()); bool recurse = isNeedRecursive(dirname); if (recurse) @@ -1208,6 +1210,9 @@ namespace creaImageIO mess << "Files\tscanned\t: " << p.GetNumberScannedFiles() << "\n"; mess << "Files\thandled\t: " << p.GetNumberHandledFiles() << "\n\n"; mess << "Files\tadded \t: " << p.GetNumberAddedFiles() << "\n\n"; + time_t end; + time(&end); + mess << "time to scan :" << difftime(end,mstart) << "sec"; wxMessageBox(std2wx(mess.str()),_T("Addition result"),wxOK,this); }