File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -23,12 +23,12 @@ namespace bitstream::test::performance
2323
2424 auto end = std::chrono::steady_clock::now ();
2525
26- auto start_time = std::chrono::time_point_cast<std::chrono::microseconds >(start).time_since_epoch ();
27- auto end_time = std::chrono::time_point_cast<std::chrono::microseconds >(end).time_since_epoch ();
26+ auto start_time = std::chrono::time_point_cast<std::chrono::nanoseconds >(start).time_since_epoch ();
27+ auto end_time = std::chrono::time_point_cast<std::chrono::nanoseconds >(end).time_since_epoch ();
2828
29- auto time = (end - start ).count ();
29+ auto time = (end_time - start_time ).count ();
3030
31- std::cout << " ->time spent: " << time << " us \n " ;
31+ std::cout << " ->time spent: " << time << " ns \n " ;
3232
3333 BS_TEST_ASSERT (status);
3434 }
You can’t perform that action at this time.
0 commit comments