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 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
Functions
Version 0.7b1 (March 24, 2022)