timer(): var

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.

Returns:

Time elapsed since the last timer() call in milliseconds (1/1000 sec).

Remarks:

Example:

...
timer();
myfunction();
printf("\nmyfunction call time = %.3f ms",timer()); // execution time in microsecond accuracy for the function call
...

See Also:

time functions, wait

► latest version online