13 lines
450 B
C++
13 lines
450 B
C++
#include "can_send.h"
|
|
#include <future>
|
|
#include <iostream>
|
|
|
|
int main() {
|
|
auto time1 = std::async(std::launch::async, [] { return test_send(PCAN_USBBUS1); });
|
|
auto time2 = std::async(std::launch::async, [] { return test_send(PCAN_USBBUS2); });
|
|
|
|
std::cout << "measurements for PCAN_USBBUS1: " << time1.get() / 1000.f << " ms" << std::endl;
|
|
std::cout << "measurements for PCAN_USBBUS2: " << time2.get() / 1000.f << " ms" << std::endl;
|
|
|
|
return 0;
|
|
} |