In my code, in thread_func I attempt to print out a value every second (every 1000000000 nanoseconds). It prints out all of the time though. Surely I'm missing something simple? If you find a solution, look me up on codementor.io – i'm Shawn Halayka (not sure if I'm allowed to say that?)
Edit: See https://github.com/sjhalayka/udpspeed_5_load_balancing/blob/main/main.cpp