ticks()

Returns number of ticks since beginning of program. Ticks are operating system dependent.

Syntax
variable = Ticks

Example
' Set n to number of ticks to perform loop
startTicks = ticks()
for i = 1 to 1000000
            ' do nothing
next
n = ticks() - startTicks 
print n