September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
13
Task/Time-a-function/Julia/time-a-function.julia
Normal file
13
Task/Time-a-function/Julia/time-a-function.julia
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
# v0.6.0
|
||||
|
||||
function countto(n::Integer)
|
||||
i = zero(n)
|
||||
println("Counting...")
|
||||
while i < n
|
||||
i += 1
|
||||
end
|
||||
println("Done!")
|
||||
end
|
||||
|
||||
@time countto(10 ^ 5)
|
||||
@time countto(10 ^ 10)
|
||||
Loading…
Add table
Add a link
Reference in a new issue