Use benchmark macro
This commit is contained in:
@@ -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())
|
||||
Reference in New Issue
Block a user