math.floor

This commit is contained in:
Empathic Qubit 2021-03-22 18:55:05 -04:00
parent 400af4dbd0
commit 94167e6404

View file

@ -741,7 +741,7 @@ function on_input()
end
if frame % 60 == 0 then
local sec2, usec2 = utime()
print(string.format("Frame took %d msec", (sec2 - sec + (usec2 - usec) / 100000) * 1000))
print(string.format("Frame took %d msec", math.floor((sec2 - sec + (usec2 - usec) / 100000) * 1000)))
end
local inputs = input.raw()