Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
the ticks
Value returned: an integer equal to the number of ticks since the Macintosh was turned on or restarted. (One tick equals one-sixtieth of a second.) on ticksDemo
put 0 into total
put the ticks into startTicks
repeat with number = 1 to 100
set cursor to busy
add number to total
end repeat
put the ticks - startTicks into totalTime
answer "The sum of numbers 1 to 100 is" && total & return &¬
"It took" && totalTime && "ticks to figure out."
end ticksDemo
Functions
Version 0.7b1 (March 24, 2022)