Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
michelerenzullo committed Mar 19, 2021
1 parent 79d04cc commit e2099f9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions XMPConverter/XMPconverter.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include "optparse.h"
#include "lightMD5.h"
#include <chrono>
#include <zlib.h>
#include <string>
#include <execution>
Expand Down Expand Up @@ -541,11 +540,7 @@ int main(int argc, char** argv) {
}

string ext[] = { "xmp","cube" };
auto t1 = std::chrono::high_resolution_clock::now();
//tbb::parallel_for_each(inputFiles.begin(), inputFiles.end(), [&](string& inputFile) {
for_each(std::execution::par, inputFiles.begin(), inputFiles.end(), [&](string& inputFile) {
//#pragma omp parallel for
//for (const auto& inputFile : inputFiles) {

if (fileExists(inputFile)) {
string filecheck = inputFile.substr(inputFile.find_last_of(".") + 1);
Expand All @@ -566,7 +561,6 @@ int main(int argc, char** argv) {
}
}
});
printf("\ntime: %lld\n", std::chrono::duration_cast<std::chrono::seconds>(std::chrono::high_resolution_clock::now() - t1).count());
}
else printf("missing input");
printf("\n");
Expand Down

0 comments on commit e2099f9

Please sign in to comment.