Use benchmark macro
This commit is contained in:
parent
64a07f3782
commit
233979c01f
@ -8,6 +8,8 @@ Solution for Problem 1 of Project Euler
|
||||
https://projecteuler.net/problem=1
|
||||
=#
|
||||
|
||||
using BenchmarkTools
|
||||
|
||||
function Problem1()
|
||||
#=
|
||||
If we list all the natural numbers below 10 that are multiples of 3 or 5,
|
||||
@ -22,6 +24,6 @@ end
|
||||
|
||||
|
||||
println("Time to evaluate Problem 1:")
|
||||
@time Problem1()
|
||||
@btime Problem1()
|
||||
println("")
|
||||
println("Result for Problem 1: ", Problem1())
|
Loading…
x
Reference in New Issue
Block a user