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