Difference between revisions of "Os"
(Created page with "__NOTOC__ '''Supported platforms:''' <br/> '''Available since:''' Gideros 2011.6<br/> === Description === Operating System Facilities{|- | style="width: 50%;"| === Methods ===...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | '''Supported platforms:''' <br/> | + | '''Supported platforms:''' android, ios, mac, pc<br/> |
'''Available since:''' Gideros 2011.6<br/> | '''Available since:''' Gideros 2011.6<br/> | ||
=== Description === | === Description === | ||
− | Operating System Facilities{|- | + | Operating System Facilities |
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | {|- | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Methods === | === Methods === | ||
+ | [[os.clock]] - returns CPU time used by program in seconds<br/> | ||
+ | [[os.date]] - returns a string or table containing date and time, "*t" returns a table<br/> | ||
+ | [[os.difftime]] - returns number of seconds from time t1 to time t2<br/> | ||
+ | [[os.execute]] - executes command using C function system, returns status code<br/> | ||
+ | [[os.exit]] - terminates host program with optional code, default is success code<br/> | ||
+ | [[os.getenv]] - returns value of environment variable varname. nil if not defined<br/> | ||
+ | [[os.remove]] - deletes file with given name, nil if fails<br/> | ||
+ | [[os.rename]] - renames file oldname to newname, nil if fails<br/> | ||
+ | [[os.setlocale]] - set current locale of program, returns name of new locate or nil<br/> | ||
+ | [[os.time]] - returns current time(usually seconds- or time as represented by table<br/> | ||
+ | [[os.timer]] - returns precise time in seconds relative to some arbitrary point<br/> | ||
+ | [[os.tmpname]] - returns a string with a filename for a temporary file(dangerous! tmpfile is better-<br/> | ||
| style="width: 50%;"| | | style="width: 50%;"| | ||
=== Events === | === Events === | ||
=== Constants === | === Constants === | ||
|} | |} |
Revision as of 08:57, 23 August 2018
Supported platforms: android, ios, mac, pc
Available since: Gideros 2011.6
Description
Operating System Facilities
Methodsos.clock - returns CPU time used by program in seconds |
EventsConstants |