mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'camera' library
This commit is contained in:
parent
24ecb94942
commit
ffb7aa1189
6 changed files with 56 additions and 26 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue