---
title: "System"
description: "Static system related constants and functions."
canonical_url: "https://www.zeyos.com/zymba/ref/system"
markdown_url: "https://www.zeyos.com/ai/guide/zymba/ref/system.md"
section: "zymba-reference"
authority: "reference"
language: "en"
source_repository: "https://cloud.zeyos.com/__doc/zymbaref.json"
source_sha256: "05a361c6ddc32e74f4a6dc16fd06f218210ff1b7ce57f26ca1994bfffc407915"
---

# System

## 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


### `@System.getCurrentMemoryUsage()`


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

```code
@System.getCurrentMemoryUsage(): int
```

##### Returns

| Type | Value |
| --- | ---  |
| `int` |  |




### `@System.getHost()`


Gets the host name of the system.

```code
@System.getHost(): string
```

##### Returns

| Type | Value |
| --- | ---  |
| `string` |  |




### `@System.getMachine()`


Gets the machine architecture of the system.

```code
@System.getMachine(): string
```

##### Returns

| Type | Value |
| --- | ---  |
| `string` |  |




### `@System.getMonotonicTime()`


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` |  |




### `@System.getPeakMemoryUsage()`


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

```code
@System.getPeakMemoryUsage(): int
```

##### Returns

| Type | Value |
| --- | ---  |
| `int` |  |




### `@System.getProcessID()`


Gets the process ID of the underlying runtime environment.

```code
@System.getProcessID(): int
```

##### Returns

| Type | Value |
| --- | ---  |
| `int` |  |




### `@System.listCommandLineArguments()`


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

```code
@System.listCommandLineArguments(): object
```

##### Returns

| Type | Value |
| --- | ---  |
| `object` | [argument, ...] |




### `@System.sleep()`


Delays execution for a specific duration in number of seconds.

```code
@System.sleep(number $duration): void
```

##### Parameters

| Name | Type | Value | Default |
| --- | --- | --- | --- |
| duration | `number`  |  | 1 |
