2 ms·
In Julia: julia> @time sum(1:1000000000) elapsed time: 1.4527e-5 seconds (88 bytes allocated) 500000000500000000 @time is a macro that prints the
by buo 13y ago
In Julia:
julia> @time sum(1:1000000000)
elapsed time: 1.4527e-5 seconds (88 bytes allocated)
500000000500000000
@time is a macro that prints the code's execution time and memory usage. This is inside a VM running Linux.