Skip to content

HELIXUtils

Examples#

local table = {
    "my_key" = 123,
    [2] = "my_value"
}

local dump_text = HELIXUtils.Dump(table)

Console.Log(dump_text)

-- Outputs Text
--[[
{
    "my_key": 123,
    2 = "my_value"
}
--]]
local arg1 = math.random()
local arg2 = math.random()

HELIXUtils.Benchmark("My Heavy Operation", 1000, function(param1, param2)
    -- Do some heavy operations here
    local result = param1 * param2
end, arg1, arg2)

-- Outputs Text: 'Benchmark 'My Heavy Operation' (x1000) took 1.5ms.'

Static Functions#