Skip to main content

SystemHardware UCMVirtual UCM

The system library library allows to receive current uptime and delaying script execution.

system.uptime

-- @return number
function system.uptime()
end

Returns the current UCM uptime in seconds. The integer part represents whole seconds, and the fractional part represents the partial second — for example, 1.1 means 1 second and 100 milliseconds.

Example

-- Log current UCM uptime.
enpapter.log("Current UCM uptime is: " .. tostring(system.uptime()))

system.delay

-- @param delay number
function system.delay(delay)
end

Delays script execution for a specified delay, in milliseconds. The maximum delay is 5000 milliseconds (5 seconds).

Example

-- Delay script execution for 100 milliseconds.
system.delay(100)

All Rights Reserved © 2025 Enapter AG.