Possible Duplicate:
C++ Timer function to provide time in nano seconds
I need to get out of a loop when approaching 3 seconds, so I need to calculate the elapsed time.
I'm moving some code from Java to C, and I was using the easy System.nanoTime() in Java,
How would I do that in C?
I noticed that time(NULL) will return the seconds, but I'm looking for more precision.
Thank you in advance