Hacker News new | past | comments | ask | show | jobs | submit login

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.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: