# BT.runtime ## Function returns the current BT process runtime information. ## Syntax ```bt BT.runtime() ``` ## Parameters | Parameters | Type | Required | Default value | Description | | ------ | ------ | ------ | ------ | ------ | | None | - | No | None | No parameters required. | ## Return Value | Type | Description | | ------ | ------ | | Object | Returns the runtime information object. See "Return Object Fields" below for fields. | ## Return object field | Field | Type | Must exist | Description | | ------ | ------ | ------ | ------ | | uptime | Int | Yes | The number of seconds the current BT process has been running, calculated by subtracting `start_time` from the current Unix timestamp. | | threads | Int | Yes | Number of parallel threads available in the current system. `1` is returned when the read fails. | | start_time | Int | Yes | BT process startup timestamp, in seconds. This value is fixed within the process. | ## Examples ```bt runtime = BT.runtime() result = runtime.threads == BT.THREADS // Output: true print result ``` ## Notes - start_time is the BT process startup timestamp, in seconds. - uptime is the current time minus start_time, in seconds. - To view I/O, task, timer, net, and cache resource status, use `BT.stats()`.