X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracunweightedcommand.cpp;h=5fd26df8ccdd6e5510856ca26bd7574caa11ed43;hb=9b884118e97081d743c7b001216567f9b9131258;hp=848c85c9d20f14f2ede20987026666ab2cd62181;hpb=e03de8796670a0c747aed63483daa09c8b86aea0;p=mothur.git diff --git a/unifracunweightedcommand.cpp b/unifracunweightedcommand.cpp index 848c85c..5fd26df 100644 --- a/unifracunweightedcommand.cpp +++ b/unifracunweightedcommand.cpp @@ -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(); }