Skip to content

Commit

Permalink
v0
Browse files Browse the repository at this point in the history
  • Loading branch information
exbracer committed Feb 12, 2017
1 parent 4f813f0 commit 48c806a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SLPA_C_qiaoyc/SLPA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1532,7 +1532,7 @@ void SLPA::GLPA_asyn_pointer_time(){
random_shuffle (net->NODES.begin(), net->NODES.end());
//net->showVertices();
gettimeofday(&end_1, NULL);
double time_used_1 += ((double)((end_1.tv_sec-start_1.tv_sec)*1000000+(end_1.tv_usec-start_1.tv_usec)))/1000000;
time_used_1 += ((double)((end_1.tv_sec-start_1.tv_sec)*1000000+(end_1.tv_usec-start_1.tv_usec)))/1000000;

gettimeofday(&start_2, NULL);
//2. do one iteration-asyn
Expand Down Expand Up @@ -1569,7 +1569,7 @@ void SLPA::GLPA_asyn_pointer_time(){
v->WQueue.push_back(label);
}
gettimeofday(&end_2, NULL);
double time_used_2 += ((double)((end_2.tv_sec-start_2.tv_sec)*1000000+(end_2.tv_usec-start_2.tv_usec)))/1000000;
time_used_2 += ((double)((end_2.tv_sec-start_2.tv_sec)*1000000+(end_2.tv_usec-start_2.tv_usec)))/1000000;
//cout<<" Take :" <<difftime(time(NULL),st)<< " seconds."<<endl;
}
cout << "time used for part-2-a is " << time_used_1 << " s." << endl;
Expand Down

0 comments on commit 48c806a

Please sign in to comment.