Difference between revisions of "Os.clock"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2011.6<br/>
'''<translate>Available since</translate>:''' Gideros 2011.6<br/>
+
'''Class:''' [[os]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/os|os]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>returns CPU time used by program in seconds</translate>
+
Returns CPU time used by the program in seconds.
 
<source lang="lua">
 
<source lang="lua">
 
(number) = os.clock()
 
(number) = os.clock()
 
</source>
 
</source>
=== <translate>Return values</translate> ===
+
 
'''<translate>Returns</translate>''' (number) <translate>time in seconds</translate><br/>
+
=== Return values ===
 +
'''Returns''' (number) CPU time in seconds<br/>
  
 
{{Os}}
 
{{Os}}

Revision as of 23:15, 28 October 2022

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