all tasks
This commit is contained in:
parent
b83f433714
commit
68f8f3e56b
14735 changed files with 178959 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