Supported platforms: android, ios, mac, pc Available since: Gideros 2011.6
Operating System Facilities
os.clock Template:Returns CPU time used by program in seconds os.date Template:Returns a string or table containing date and time, "*t" returns a table os.difftime Template:Returns number of seconds from time t1 to time t2 os.execute Template:Executes command using C function system, returns status code os.exit Template:Terminates host program with optional code, default is success code os.getenv Template:Returns value of environment variable varname. nil if not defined os.remove Template:Deletes file with given name, nil if fails os.rename Template:Renames file oldname to newname, nil if fails os.setlocale Template:Set current locale of program, returns name of new locate or nil os.time Template:Returns current time(usually seconds- or time as represented by table os.timer Template:Returns precise time in seconds relative to some arbitrary point os.tmpname Template:Returns a string with a filename for a temporary file(dangerous! tmpfile is better-