math.floor
This commit is contained in:
parent
400af4dbd0
commit
94167e6404
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue