[ntcore] Use wpi::Now instead of loop time for transmit time

As the send function is called after local processing, there can be a
substantial delay between the loop time and the actual send.
This commit is contained in:
Peter Johnson
2023-02-12 23:21:08 -08:00
parent 226ef35212
commit 843574a810
11 changed files with 34 additions and 7 deletions

View File

@@ -32,6 +32,8 @@ class MockWireConnection : public WireConnection {
MOCK_METHOD(void, Flush, (), (override));
MOCK_METHOD(uint64_t, GetLastFlushTime, (), (const, override));
MOCK_METHOD(void, Disconnect, (std::string_view reason), (override));
protected:

View File

@@ -28,6 +28,8 @@ class MockWireConnection3 : public WireConnection3 {
MOCK_METHOD(void, Flush, (), (override));
MOCK_METHOD(uint64_t, GetLastFlushTime, (), (const, override));
MOCK_METHOD(void, Disconnect, (std::string_view reason), (override));
protected: