Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Time-a-function/Lingo/time-a-function-1.lingo
Normal file
5
Task/Time-a-function/Lingo/time-a-function-1.lingo
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
on testFunc ()
|
||||
repeat with i = 1 to 1000000
|
||||
x = sqrt(log(i))
|
||||
end repeat
|
||||
end
|
||||
5
Task/Time-a-function/Lingo/time-a-function-2.lingo
Normal file
5
Task/Time-a-function/Lingo/time-a-function-2.lingo
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
ms = _system.milliseconds
|
||||
testFunc()
|
||||
ms = _system.milliseconds - ms
|
||||
put "Execution time in ms:" && ms
|
||||
-- "Execution time in ms: 983"
|
||||
Loading…
Add table
Add a link
Reference in a new issue