01-27-2021 03:17 AM
Good Day, Sir
I am running a application in a while loop, my program acts as a TCP server, and receives Client data via ServerTCPRead() after getting a hardware trigger(SOT).
it is weird that when on line test the time elapsed~80ms in the while loop, but offline test without in while loop, the time elapsed~5ms
while()
{//while loop
If(sot==1)
{//if
T1=timer();
dataSize = ServerTCPRead (g_hconversation, receiveBuf, dataSize, 1000);
T2=timer();
}//if
}//while loop
T2-T1 ~80ms(too long)
I have surf the similar question like:
could any one help me reduce the time elapsed to~5ms in a while loop?
thanks
Solved! Go to Solution.
02-02-2021 02:00 AM