Zymba Documentation
System
Text
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.
CODE
@System.getCurrentMemoryUsage(): int
Returns
| Type | Value |
|---|---|
int |
Gets the system's monotonic clock in ticks, representing elapsed time since an unspecified starting point.
CODE
@System.getMonotonicTime(): int
Returns
| Type | Value |
|---|---|
int | |
float |
Gets the peak memory usage of the underlying runtime environment in number of bytes.
CODE
@System.getPeakMemoryUsage(): int
Returns
| Type | Value |
|---|---|
int |
Gets the process ID of the underlying runtime environment.
CODE
@System.getProcessID(): int
Returns
| Type | Value |
|---|---|
int |
Lists all command line arguments passed to the underlying runtime environment.
CODE
@System.listCommandLineArguments(): object
Returns
| Type | Value |
|---|---|
object | [argument, ...] |
Delays execution for a specific duration in number of seconds.
CODE
@System.sleep(number $duration): void
Parameters
| Name | Type | Value | Default |
|---|---|---|---|
| duration | number | 1 |