Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Category:timer
635 bytes added
,
18:36, 22 October 2011
no edit summary
Line 1:
Line 1:
−
*'''[[
timer.
start]]'''(time) : Starts
the timer
with
the
given ''time'' (in
seconds
)
+
== Description ==
+
Each script application has one
timer
at its disposal
.
<br />
+
The resolution of
the timer
depends on
the
platform. It is about 0.01
seconds
on the hand-held device.
−
*'''[[
timer
. getMilliSecCounter]]'''
()
: Returns the value of
the
milliseconds elapsed since
the
calculator's last boot
.
+
The script application should implement the “on.
timer()
” function to respond to timer ticks.
+
The timer continues to send ticks to
the
script application even when its window is not visible on
the
screen
.
+
The timer is automatically stopped when the document containing the script application is closed or if the script application is deleted.
+
+
See an example at http://www.inspired-lua.org/2011/05/linking-events/
+
== Quick Overview ==
+
*'''[[timer.start]]'''(period) : Starts the timer with the given ''period'' (in seconds)<br />
+
*'''[[timer.getMilliSecCounter]]'''() : Returns the value of the milliseconds elapsed since the calculator's last boot.<br />
*'''[[timer.stop]]'''() : Stops the timer.
*'''[[timer.stop]]'''() : Stops the timer.
Jimbauwens
68
edits
Navigation menu
Personal tools
Log in
Namespaces
Category
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version