Skip to content
This repository was archived by the owner on Jul 13, 2019. It is now read-only.
This repository was archived by the owner on Jul 13, 2019. It is now read-only.

Add a way to time how long functions take to execute #59

@7sharp9

Description

@7sharp9

e.g. In F# interactive you would use:

> #time;;
--> Timing now on
> let rec fib n = if n < 2 then 1 else fib (n-1) + fib(n-2);;
Real: 00:00:00.000, CPU: 00:00:00.000, GC gen0: 0, gen1: 0
val fib : n:int -> int

> fib 42;;
Real: 00:00:02.615, CPU: 00:00:02.612, GC gen0: 0, gen1: 0
val it : int = 433494437

Its a nice feature in F#, I thought it may be useful in rusti. Im not exactly sure how easy it would be to add?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions