Skip to main content

Zymba Documentation

System

object @System() {
OS;
PHPVERSION;
SAPI;
getCurrentMemoryUsage(): int {}
getHost(): string {}
getMachine(): string {}
getMonotonicTime(): int {}
getPeakMemoryUsage(): int {}
getProcessID(): int {}
listCommandLineArguments(): object {}
sleep(number $duration) {}
}

Static system related constants and functions.

Functions

Gets the current memory usage of the underlying runtime environment in number of bytes.

@System.getCurrentMemoryUsage(): int
Returns
TypeValue
int

Gets the host name of the system.

@System.getHost(): string
Returns
TypeValue
string

Gets the machine architecture of the system.

@System.getMachine(): string
Returns
TypeValue
string

Gets the system's monotonic clock in ticks, representing elapsed time since an unspecified starting point.

@System.getMonotonicTime(): int
Returns
TypeValue
int

Gets the peak memory usage of the underlying runtime environment in number of bytes.

@System.getPeakMemoryUsage(): int
Returns
TypeValue
int

Gets the process ID of the underlying runtime environment.

@System.getProcessID(): int
Returns
TypeValue
int

Lists all command line arguments passed to the underlying runtime environment.

@System.listCommandLineArguments(): object
Returns
TypeValue
object[argument, ...]

Delays execution for a specific duration in number of seconds.

@System.sleep(number $duration): void
Parameters
NameTypeValueDefault
durationnumber1