24 #ifndef CANINTERFACE_SOCKCAN_CANSTATISTICS_H_ 25 #define CANINTERFACE_SOCKCAN_CANSTATISTICS_H_ 32 # include "Winsock2.h" 35 # define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) 36 # if GCC_VERSION > 40800 39 # include <stdatomic.h> 40 # endif // GCC_VERSION 41 # include <sys/time.h> 59 void computeDerived(
unsigned int baudRate);
62 void onTransmit(
unsigned int dataLength);
65 void onReceive(
unsigned int dataLength);
69 float txRate() {
return m_internals.m_transmittedPerSec; }
70 float rxRate() {
return m_internals.m_receivedPerSec; }
71 float busLoad() {
return m_internals.m_busLoad; }