Script_BG_limits = 11

function we_bg_init()

end

function we_bg_poll()


local socket = require("socket")

-- Local millisecond timestamp
local localMs = math.floor(socket.gettime() * 1000)

-- Construct UTC time table, get UTC second timestamp first, then append millisecond part

local timestamp = os.time()
local utcSecTimestamp = os.time(utcTimeTable)

-- Extract fractional millisecond part
local frac = socket.gettime() - math.floor(socket.gettime())
local utcMsTimestamp = utcSecTimestamp * 1000 + math.floor(frac * 1000) 

--print("UTC millisecond timestamp:", utcMsTimestamp)

we_bas_setlonglong("@W_0#HDW100",utcSecTimestamp)
we_bas_setlonglong("@W_0#HDW150",utcMsTimestamp)

end