Skip to content

Commit

Permalink
Add back sorted buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Oct 10, 2024
1 parent 11f57fc commit 3ab00cf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions wpimath/src/test/native/cpp/TimeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ void ProcessDurations(const wpi::array<units::nanosecond_t, N>& durations,
}

wpi::print("{}Last 10: {}\n", prefix, buffer);

wpi::array<units::nanosecond_t, N> sorted{durations};
std::sort(sorted.begin(), sorted.end());
}

template <size_t N>
Expand Down

0 comments on commit 3ab00cf

Please sign in to comment.