Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
12
Task/Time-a-function/Lua/time-a-function.lua
Normal file
12
Task/Time-a-function/Lua/time-a-function.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
function Test_Function()
|
||||
for i = 1, 10000000 do
|
||||
local s = math.log( i )
|
||||
s = math.sqrt( s )
|
||||
end
|
||||
end
|
||||
|
||||
t1 = os.clock()
|
||||
Test_Function()
|
||||
t2 = os.clock()
|
||||
|
||||
print( os.difftime( t2, t1 ) )
|
||||
Loading…
Add table
Add a link
Reference in a new issue