Skip to content

Instantly share code, notes, and snippets.

@ryochack
Created April 21, 2013 08:23
Show Gist options
  • Save ryochack/5428888 to your computer and use it in GitHub Desktop.
Save ryochack/5428888 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"time"
)
func main() {
const num = 100000
sum := 0
for i := 0; i < num; i++ {
time.Sleep(1 * time.Millisecond)
sum += i
}
fmt.Println(sum)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment