Sys
class neko.SysAvailable in neko
static function args() : Array<String>Returns all command line arguments, where index 0 is the first argument.
static function command( cmd : String, ?args : Array<String> ) : IntExecutes the given command as if it were being run from a shell.
static function cpuTime() : FloatReturns the amount of system and user time in seconds.
static function environment() : Hash<String>Returns a Hash table containing system's environment variables.
static function escapeArgument( arg : String ) : StringReturns the given argument with special characters escaped.
static function executablePath() : StringReturns the path of the executed file
static function exit( code : Int ) : VoidTerminates the application.
static function getCwd() : StringReturns the current working directory of the main neko process.
static function getEnv( s : String ) : StringReturns the given environment string.
static function putEnv( s : String, v : String ) : VoidSets an environment variable.
static function setCwd( s : String ) : VoidSets the current working directory of the main neko process.
static function setTimeLocale( loc : String ) : BoolSets the program locale.
static function sleep( seconds : Float ) : VoidTells the current thread to wait for the given amount of time.
static function systemName() : StringReturns the name of the current platform.
static function time() : FloatReturns the number of seconds since the Epoch.
version #7377, modified 2009-12-18 15:47:01 by vhesselbom