Created
February 16, 2020 19:28
-
-
Save gokusenz/a6cfd62d872868d6260bfefe2eb2619d to your computer and use it in GitHub Desktop.
elapsed time for golang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func main() { | |
| start := time.Now() | |
| r := new(big.Int) | |
| fmt.Println(r.Binomial(1000, 10)) | |
| elapsed := time.Since(start) | |
| log.Printf("Binomial took %s", elapsed) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment