147
edits
Changes
→Parallel - Pi
}
// Method: Claculate Calculate time delta
func (self *StopWatch) Milliseconds() uint32 {
return uint32(self.stop.Sub(self.start) / time.Millisecond)
}
// Function: Serial calustion calculation of PI
func PI(samples int) float64 {
var inside int = 0