Difference between revisions of "Os.clock"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
m (Text replacement - "</source>" to "</syntaxhighlight>")
Line 7: Line 7:
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
(number) = os.clock()
 
(number) = os.clock()
</source>
+
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===

Revision as of 14:32, 13 July 2023

Available since: Gideros 2011.6
Class: os

Description

Returns CPU time used by the program in seconds.

(number) = os.clock()

Return values

Returns (number) CPU time in seconds