Difference between revisions of "Os.clock"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Returns CPU time used by the program in seconds.
 
Returns CPU time used by the program in seconds.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(number) = os.clock()
 
(number) = os.clock()
 
</source>
 
</source>

Revision as of 14:30, 13 July 2023

Available since: Gideros 2011.6
Class: os

Description

Returns CPU time used by the program in seconds. <syntaxhighlight lang="lua"> (number) = os.clock() </source>

Return values

Returns (number) CPU time in seconds