Running this test, I always get the same value from os.time(). Can anyone else verify this?
function setup()
local t1 = os.time()
tween.delay(1, function()
local t2 = os.time()
print("t1:", t1)
print("t2:", t2)
print("t1 == t2:", t1 == t2)
print("os.difftime(t2, t1):", os.difftime(t2, t1))
end
end
Not sure if it’s a problem for the latest release build, or just the beta build, or just my ipad, but at any rate I’m pretty sure this behavior is incorrect.
When i want the seconds i actually use os.date.
After your remark, i notice i’ve always used os.clock, os.date , or elapsedtime, and never os.time… I run the ‘standard’ version of Codea, not the beta (waiting for a beta with real value for me, like the clipboard…)