I need a way to delay a program for only a matter of nano seconds in C. I need to take up to 2000 samples per second and currently can not do this using clock() since it does not give me accurate enough digits in decimal places. The lowest value that clock() returns is every 10 milliseconds.
Thanks