Lingo Dictionary > L-N > milliseconds |
![]() ![]() ![]() |
milliseconds
Syntax
the milliseconds
Description
System property; returns the current time in milliseconds (1/1000 of a second). Counting begins from the time the computer is started.
Example
This statement converts milliseconds to seconds and minutes by dividing the number of milliseconds by 1000 and dividing that result by 60, and then sets the variable currentMinutes
to the result:
currentSeconds = milliseconds/1000 currentMinutes = currentseconds/60
The resolution accuracy of the count is machine and operating system dependent.
Example
This handler counts the milliseconds and posts an alert if you've been working too long.
on idle if the milliseconds > 1000 * 60 * 60 * 4 then alert "Take a break" end if end
See also
![]() ![]() ![]() |