Skip to content

Commit

Permalink
Use microsecond precision in 10000 components test
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusTomlinson committed Mar 27, 2023
1 parent 1cdd369 commit 23100a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ TEST_CASE( "TenThousandComponents" )

auto end = std::chrono::high_resolution_clock::now();

auto diff_ms = std::chrono::duration_cast<std::chrono::milliseconds>( end - begin ).count();
auto diff_ms = std::chrono::duration_cast<std::chrono::microseconds>( end - begin ).count() / 1000.0;

std::cout << "1x Buffer, 10000 Components (Series Mode): " << diff_ms / iterationCount << "ms\n";
}
Expand All @@ -1236,7 +1236,7 @@ TEST_CASE( "TenThousandComponents" )

auto end = std::chrono::high_resolution_clock::now();

auto diff_ms = std::chrono::duration_cast<std::chrono::milliseconds>( end - begin ).count();
auto diff_ms = std::chrono::duration_cast<std::chrono::microseconds>( end - begin ).count() / 1000.0;

std::cout << "2x Buffer, 10000 Components (Series Mode): " << diff_ms / iterationCount << "ms\n";
}
Expand All @@ -1254,7 +1254,7 @@ TEST_CASE( "TenThousandComponents" )

auto end = std::chrono::high_resolution_clock::now();

auto diff_ms = std::chrono::duration_cast<std::chrono::milliseconds>( end - begin ).count();
auto diff_ms = std::chrono::duration_cast<std::chrono::microseconds>( end - begin ).count() / 1000.0;

std::cout << "3x Buffer, 10000 Components (Series Mode): " << diff_ms / iterationCount << "ms\n";
}
Expand All @@ -1272,7 +1272,7 @@ TEST_CASE( "TenThousandComponents" )

auto end = std::chrono::high_resolution_clock::now();

auto diff_ms = std::chrono::duration_cast<std::chrono::milliseconds>( end - begin ).count();
auto diff_ms = std::chrono::duration_cast<std::chrono::microseconds>( end - begin ).count() / 1000.0;

std::cout << "4x Buffer, 10000 Components (Series Mode): " << diff_ms / iterationCount << "ms\n";
}
Expand Down

0 comments on commit 23100a1

Please sign in to comment.