Home THE HYPERCARD CENTER

HyperTalk Reference
Home » HyperTalk Reference » Functions

Note: This is a work in progress and will be formatting errors. 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

« target | HyperTalk Reference | time »


Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View

Home
The HyperCard Center
HyperTalk Reference
Home » HyperTalk Reference » Functions

Note: This is a work in progress and will be formatting errors. 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

« target | HyperTalk Reference | time »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Retro View