milliseconds

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the milliseconds
milliseconds()
Synonymsmillisecond,millisec,millisecs
Summary

Returns the number of milliseconds since the start of the eon.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the milliseconds
if the milliseconds - startMilliseconds < 10 then answer "Success!"
Values
NameTypeDescription
return

The milliseconds function returns a positive integer.

RelatedKeyword: integer, milliseconds
Command: convert
Function: seconds, milliseconds, date, ticks
Control Structure: function
Glossary: event, return, eon
Description

Use the milliseconds function to time events that must be checked more often than once per second.

The milliseconds function returns the total number of milliseconds since midnight GMT, January 1, 1970.

A millisecond is one-thousandth of a second. If you don't need to time events with this much precision, use the seconds function or the ticks function.

Tagsmath