High precision timer function. Measures the time between two calls, and can be used for testing function execution speed and time optimizing the script for faster training.
Time elapsed since the last timer() call in milliseconds (1/1000 sec).
- This function uses the Pentium performance counter register. The returned value has a precision of a few nanoseconds, depending
on the processor clock rate.
printf("\nmyfunction call time = %.3f ms",timer()); // execution time in microsecond accuracy for the function call
time functions, wait