Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference »

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

ticks

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.)

Demo Script

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

Related Topics

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View