Dear David,
Thanks for the suggestion, IT WORKED!
latency reduced to 4 uSec that's huge. and yes, I made mistake in pasting
the code and removing the comments.
Thanks a ton.
Reposting the code bellow:
#include
#include
#include
#include
int main()
{
struct timespec sT, eT
I suggest you call clock_gettime () twice with nothing between these calls.
printf() is a complicated function that may interact with hardware, for
example, a serial port or ethernet. The time required to do input or output
may depend on the state of the hardware, or on the operation of a