I am currently using the function clock()provided by the library time.h. This gives me time accuracy of up to milliseconds. However, this time is based on the processor cycle. I need a function that, instead of using processor cycles, it clock()will use the system real time accurate to the millisecond.
I am using linux with the gcc compiler.
source
share