Created
April 21, 2013 08:23
-
-
Save ryochack/5428888 to your computer and use it in GitHub Desktop.
This file contains 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
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