* Fix for GetOSTime
This commit is contained in:
Applevangelist 2022-08-22 17:05:02 +02:00
parent 882c2e2378
commit 02a59b0742

View File

@ -1725,10 +1725,16 @@ end
-- @return #number Os time in seconds.
function UTILS.GetOSTime()
if os then
return os.clock()
local ts = 0
local t = os.date("*t")
local s = t.sec
local m = t.min * 60
local h = t.hour * 3600
ts = s+m+h
return ts
else
return nil
end
return nil
end
--- Shuffle a table accoring to Fisher Yeates algorithm