mirror of
https://github.com/kikito/middleclass.git
synced 2024-12-11 19:44:24 +00:00
14 lines
180 B
Lua
14 lines
180 B
Lua
|
return function(title, f)
|
||
|
|
||
|
collectgarbage()
|
||
|
|
||
|
local startTime = os.clock()
|
||
|
|
||
|
for i=0,10000 do f() end
|
||
|
|
||
|
local endTime = os.clock()
|
||
|
|
||
|
print( title, endTime - startTime )
|
||
|
|
||
|
end
|