[go-nuts] Re: time.Sleep and sync.WaitGroup strange behavior

2017-01-21 Thread Xu Lei
if you get into the fmt.println, you will see the output device is os.Stdout, any println call will direct output into it nodelay 在 2017年1月21日星期六 UTC+8上午11:34:09,Rodolfo Azevedo写道: > > Hi all, > > I have a question, interesting: > > Why the executes is diferente in these both situations? > > Exec

[go-nuts] Re: time sub negative

2016-11-25 Thread Xu Lei
0:00 UTC. > sec int64 > // nsec specifies a non-negative nanosecond > // offset within the second named by Seconds. > // It must be in the range [0, 9]. > nsec int32 > loc *Location > } > > On Friday, November 25, 2016 at 3:38:23 PM UTC+8, Xu Lei wro

[go-nuts] Re: time sub negative

2016-11-25 Thread Xu Lei
os: windows7 version: go version go1.7 windows/amd64 On Friday, November 25, 2016 at 4:24:52 PM UTC+8, Dave Cheney wrote: > > You might want to try eTime.Sub(sTime) which returns a time.Duration which > can print itself. > > Which operating system are you using? Which version of Go are you usin

[go-nuts] Re: do i need to wait all child routine exit

2016-11-25 Thread Xu Lei
thanks for replying!!! the answers are great -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit ht

[go-nuts] Re: time sub negative

2016-11-25 Thread Xu Lei
2016-11-25 15:36:21.9983037 +0800 CST : [Success for beacons.gvt2.com. for 38] 2016-11-25 15:36:22.0083043 +0800 CST : [Success for timgsa.baidu.com. for -960] 2016-11-25 15:36:22.0153047 +0800 CST : [Success for sp0.baidu.com. for -953] 2016-11-25 15:36:22.0153047 +0800 CST : [Success for s

[go-nuts] time sub negative

2016-11-24 Thread Xu Lei
.. sTime := time.Now().Nanosecond() defer func() { eTime := time.Now().Nanosecond() debug("Success for ", qname, "for", (eTime-sTime)/100) }() .. i got negative value for (eTime - sTime) when defer function calls is there any thing