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.


the seconds
the secs
Value returned: an integer equal to the number of seconds between midnight, January 1, 1904, and the current time set in your computer

Demo Script

on secondsDemo
   -- Check the speed of an operation
   put 0 into total
   put the seconds into startTime
   repeat with number = 1 to 1000
     set cursor to busy
     add number to total
   end repeat
   put the seconds - startTime into totalTime
   answer "The sum of numbers 1 to 1000 is" && total  &&¬
   "and it took" && totalTime && "seconds to figure this out."
 end secondsDemo

Related Topics

« screenRect | HyperTalk Reference | selectedButton »

Version 0.7b1 (March 24, 2022)

Made with Macintosh

Switch to Modern View