commit | fbb02b2291d28baffd63558aa44b4b56f178d650 | [log] [tgz] |
---|---|---|
author | Bob Potter <bobby.potter@gmail.com> | Thu Apr 12 16:56:04 2018 +0000 |
committer | Brad Fitzpatrick <bradfitz@golang.org> | Thu Apr 12 16:59:47 2018 +0000 |
tree | a1a313d6f63d861e6e9affd6144bb2c1cad54b7e | |
parent | 26559e0f760e39c24d730d3224364aef164ee23f [diff] |
rate: avoid creating timer in WaitN if delay is zero name old time/op new time/op delta AllowN-4 76.7ns ± 6% 76.6ns ± 3% ~ (p=0.897 n=10+10) WaitNNoDelay-4 1.36µs ± 3% 0.10µs ± 1% -92.64% (p=0.000 n=10+9) name old alloc/op new alloc/op delta AllowN-4 0.00B 0.00B ~ (all equal) WaitNNoDelay-4 208B ± 0% 0B -100.00% (p=0.000 n=10+10) name old allocs/op new allocs/op delta AllowN-4 0.00 0.00 ~ (all equal) WaitNNoDelay-4 3.00 ± 0% 0.00 -100.00% (p=0.000 n=10+10) Change-Id: I83addc3b3f7b053d6eee637fe188e21ca9b39f11 GitHub-Last-Rev: 2284b8e7b14d2f54870ddb80a40e8cf24996cd1f GitHub-Pull-Request: golang/time#5 Reviewed-on: https://go-review.googlesource.com/106461 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This repository provides supplementary Go time packages.
The easiest way to install is to run go get -u golang.org/x/time
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/time
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the time repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/time:” in the subject line, so it is easy to find.