Skip to content

Commit

Permalink
Saving...
Browse files Browse the repository at this point in the history
  • Loading branch information
lemire committed Jan 30, 2020
1 parent 75b6ada commit 64b82f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 2020/01/30/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
costofthread: costofthread.cpp
c++ -O2 -std=c++17 -o costofthread costofthread.cpp -Wall -lpthread
c++ -O2 -std=c++11 -o costofthread costofthread.cpp -Wall -lpthread

clean:
rm -f costofthread
2 changes: 1 addition & 1 deletion 2020/01/30/costofthread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ int main() {
}
double meanval = mean(timings);
double stde = std_error(timings, meanval);
std::cout.precision(5);
std::cout.precision(6);
std::cout << meanval << " ns +/- " << stde << std::endl;
std::cout << "min: " << *min_element(timings.begin(), timings.end()) << std::endl;
std::cout << "max: " << *max_element(timings.begin(), timings.end()) << std::endl;
Expand Down

0 comments on commit 64b82f6

Please sign in to comment.