diff --git a/samples/udp_rate.cpp b/samples/udp_rate.cpp index d6227e87109c2afbf3d55941f4572c0545c34a59..6dcbf24c9b2ab5ad99fb68b81b53bfe139395941 100644 --- a/samples/udp_rate.cpp +++ b/samples/udp_rate.cpp @@ -26,6 +26,7 @@ void udp_proc(rf625_profile prf) /* Increase counter */ count[prf.serial_number]++; if (start_timer) { + //std::cout << count[prf.serial_number] << std::endl; start_timer = false; count[prf.serial_number] = 0; } @@ -71,7 +72,7 @@ int main(int argc, char *argv[]) for (auto dev: dev_list) { dev->udp_register_callback(udp_proc); } - std::this_thread::sleep_for(std::chrono::milliseconds(2000)); + std::this_thread::sleep_for(std::chrono::milliseconds(1000)); std::cout << std::endl << "Started measuring rate, press Esc to stop..." << std::endl; std::cout << std::flush; ftime(&start_t);