]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
sped up unifrac weighted.
[mothur.git] / unifracweightedcommand.cpp
index 28d94d0adf502d21860099ba2928081169715e01..9cda8f2ec14c4accb670c174602fb5c9ab2d5502 100644 (file)
@@ -116,6 +116,8 @@ int UnifracWeightedCommand::execute() {
        
                if (abort == true) { return 0; }
                
+               int start = time(NULL);
+               
                Progress* reading;
                if (random) {   reading = new Progress("Comparing to random:", iters);  }
                
@@ -264,6 +266,8 @@ int UnifracWeightedCommand::execute() {
                        return 0; 
                }
                
+               m->mothurOut("It took " + toString(time(NULL) - start) + " secs to run unifrac.weighted."); 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();    }