||THE HYPERCARD CENTER
Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
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.)
put 0 into total
put the ticks into startTicks
repeat with number = 1 to 100
set cursor to busy
add number to total
put the ticks - startTicks into totalTime
answer "The sum of numbers 1 to 100 is" && total & return &¬
"It took" && totalTime && "ticks to figure out."
« target | HyperTalk Reference
| time »
(March 24, 2022)
Switch to Modern View