Skip to content

Commit

Permalink
Change timing seconds from micro to milli.
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnLidbetter committed Feb 1, 2020
1 parent b8c385f commit ec57cbb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ int main(int argc, char** argv) {
return 0;
}
std::chrono::time_point<std::chrono::high_resolution_clock> end_time = std::chrono::high_resolution_clock::now();
std::chrono::microseconds duration = std::chrono::duration_cast<std::chrono::microseconds> (end_time - start_time);
std::chrono::milliseconds duration = std::chrono::duration_cast<std::chrono::milliseconds> (end_time - start_time);
if (print_timing) {
std::cout << duration.count() << " microseconds\n";
std::cout << duration.count() << " milliseconds\n";
}
return 0;
}

0 comments on commit ec57cbb

Please sign in to comment.