add 'camera' library

This commit is contained in:
MihailRis
2024-07-12 06:14:13 +03:00
parent 24ecb94942
commit ffb7aa1189
6 changed files with 56 additions and 26 deletions
+4 -2
View File
@@ -252,9 +252,11 @@ function session.reset_entry(name)
session.entries[name] = nil
end
function timeit(func, ...)
function timeit(iters, func, ...)
local tm = time.uptime()
func(...)
for i=1,iters do
func(...)
end
print("[time mcs]", (time.uptime()-tm) * 1000000)
end