Skip to content

Commit

Permalink
Print first element of durations instead of sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Oct 11, 2024
1 parent 8c03fd5 commit 38ff160
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wpimath/src/test/native/cpp/TimeTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,12 @@ void ProcessDurations(const wpi::array<units::nanosecond_t, N>& durations,
wpi::print("{}Last 10: {}\n", prefix, buffer);
std::fflush(stdout);

wpi::print("{}\n", durations[0]);

std::array<units::nanosecond_t, N> sorted{durations};

wpi::print("{}\n", sorted[0]);
wpi::print("{}\n", durations[0]);
// wpi::print("{}\n", sorted[0]);
}

template <size_t N>
Expand Down

0 comments on commit 38ff160

Please sign in to comment.