Skip to content

Instantly share code, notes, and snippets.

@gokusenz
Created February 16, 2020 19:28
Show Gist options
  • Save gokusenz/a6cfd62d872868d6260bfefe2eb2619d to your computer and use it in GitHub Desktop.
Save gokusenz/a6cfd62d872868d6260bfefe2eb2619d to your computer and use it in GitHub Desktop.
elapsed time for golang
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