BT.runtime

BT.runtime

BT.runtime

Function

returns the current BT process runtime information.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
None-NoNoneNo parameters required.

Return Value

TypeDescription
ObjectReturns the runtime information object. See "Return Object Fields" below for fields.

Return object field

FieldTypeMust existDescription
uptimeIntYesThe number of seconds the current BT process has been running, calculated by subtracting start_time from the current Unix timestamp.
threadsIntYesNumber of parallel threads available in the current system. 1 is returned when the read fails.
start_timeIntYesBT process startup timestamp, in seconds. This value is fixed within the process.

Examples

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().