getTicks
Top  Previous  Next

val = getTicks ( )

Use this function to retrieve the number of milliseconds that have elapsed since the system was started. It is limited to the resolution of the system timer.

Parameters
 
None  
 
Return value
 
The number of milliseconds that have elapsed since the system was started.  
 
Example
 
This set of statements uses the getTicks function to benchmark the Sobel operator:  
 
setCurDir ("samples")  
loadIm (1,"sample8.iwd")  
t1=getTicks()  
sobel(1,1)  
t2=getTicks()  
bench=(t2-t1)/1000.  
Print "Execution time ",bench, " sec"