Skip to content

Commit

Permalink
asd
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Zaman committed Mar 27, 2014
1 parent c509dad commit 868955f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sendrecive.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ int main(int argc, char **argv ){
}else{
recvfrom(s, buf, buf_size, 0, (struct sockaddr *)&remaddr, &addrlen);
time_end = nano_count();
cout<<"this took "<<time_end-time_start<<" nanoseconds"<<endl;
cout<<(time_end-time_start)/1000<<" microseconds"<<endl;
cout<<(time_end-time_start)/1000000<<" milliseconds"<<endl;
cout<<(time_end-time_start)/1000000000<<" seconds"<<endl;
// cout<<"this took "<<time_end-time_start<<" nanoseconds"<<endl;
cout<<(time_end-time_start)/1000<<endl;
// cout<<(time_end-time_start)/1000000<<" milliseconds"<<endl;
// cout<<(time_end-time_start)/1000000000<<" seconds"<<endl;
}
}
}

0 comments on commit 868955f

Please sign in to comment.