ticks

Typefunction
DictionaryLCS
LibraryLiveCode Script
Syntax
the ticks
ticks()
Synonymstick
Summary

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

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
the ticks
put the ticks - startTicks into elapsedTicks
Values
NameTypeDescription
return

The ticks function returns a positive integer.

RelatedKeyword: ticks, integer
Property: idleTicks
Command: wait
Function: time, milliseconds, date, ticks
Control Structure: function
Glossary: precision, eon, return, event
Description

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

Unlike HyperTalk's "ticks" function, the ticks function returns the total number of ticks since midnight GMT, January 1, 1970, rather than the total number of ticks since the last system startup.

A tick is one-sixtieth of a second. If you don't need to time events with this much precision, use the seconds function. If you need to time events with greater precision, use the milliseconds function.

Tagsmath