Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gin committed Dec 5, 2023
1 parent 2ebd9d9 commit c7b1fde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SerialPrograms/Source/Tests/Kernels_Tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,8 @@ int test_kernels_BinaryMatrix(const ImageViewRGB32& image){
image.data(), image.bytes_per_row(), *binary_matrix, mins, maxs
);
auto time_end = current_time();
auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(time_end - time_start).count();
auto ms = ns / 1000000.;
size_t ns = std::chrono::duration_cast<std::chrono::nanoseconds>(time_end - time_start).count();
double ms = ns / 1000000.;
cout << "One binary matrix creation. time: " << ms << " ms" << endl;

size_t error_count = 0;
Expand Down Expand Up @@ -122,7 +122,7 @@ int test_kernels_BinaryMatrix(const ImageViewRGB32& image){
);
}
time_end = current_time();
ms = std::chrono::duration_cast<Milliseconds>(time_end - time_start).count();
ms = (double)std::chrono::duration_cast<Milliseconds>(time_end - time_start).count();
cout << "Running " << num_iters << " iters, average creation impl. time: " << ms / (double)num_iters << " ms" << endl;

// cout << binary_matrix->dump() << flush;
Expand Down

0 comments on commit c7b1fde

Please sign in to comment.