]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracunweightedcommand.cpp
sped up unifrac weighted.
[mothur.git] / unifracunweightedcommand.cpp
index 848c85c9d20f14f2ede20987026666ab2cd62181..5fd26df8ccdd6e5510856ca26bd7574caa11ed43 100644 (file)
@@ -125,6 +125,8 @@ int UnifracUnweightedCommand::execute() {
                
                if (abort == true) { return 0; }
                
+               int start = time(NULL);
+               
                userData.resize(numComp,0);  //data[0] = unweightedscore 
                randomData.resize(numComp,0); //data[0] = unweightedscore
                //create new tree with same num nodes and leaves as users
@@ -239,6 +241,8 @@ int UnifracUnweightedCommand::execute() {
                
                if (m->control_pressed) { for (int i = 0; i < outputNames.size(); i++) {        remove(outputNames[i].c_str());  }      return 0; }
                
+               m->mothurOut("It took " + toString(time(NULL) - start) + " secs to run unifrac.unweighted."); m->mothurOutEndLine();
+               
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();
                for (int i = 0; i < outputNames.size(); i++) {  m->mothurOut(outputNames[i]); m->mothurOutEndLine();    }