diff options
author | kiel barry <kiel.j.barry@gmail.com> | 2018-06-14 17:52:50 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-06-14 17:52:50 +0800 |
commit | d0fd8d6fc29ec859650adf30718e2b06786e854f (patch) | |
tree | 5eafbd61e5886245ab48c1670337ca5d6be14718 /common/mclock/mclock.go | |
parent | cfde0b5f5204647e356a229463337b104552fe2a (diff) | |
download | dexon-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar dexon-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.gz dexon-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.bz2 dexon-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.lz dexon-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.xz dexon-d0fd8d6fc29ec859650adf30718e2b06786e854f.tar.zst dexon-d0fd8d6fc29ec859650adf30718e2b06786e854f.zip |
common: all golint warnings removed (#16852)
* common: all golint warnings removed
* common: fixups
Diffstat (limited to 'common/mclock/mclock.go')
-rw-r--r-- | common/mclock/mclock.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/mclock/mclock.go b/common/mclock/mclock.go index 92005252e..02608d17b 100644 --- a/common/mclock/mclock.go +++ b/common/mclock/mclock.go @@ -14,7 +14,7 @@ // You should have received a copy of the GNU Lesser General Public License // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. -// package mclock is a wrapper for a monotonic clock source +// Package mclock is a wrapper for a monotonic clock source package mclock import ( @@ -23,8 +23,10 @@ import ( "github.com/aristanetworks/goarista/monotime" ) -type AbsTime time.Duration // absolute monotonic time +// AbsTime represents absolute monotonic time. +type AbsTime time.Duration +// Now returns the current absolute monotonic time. func Now() AbsTime { return AbsTime(monotime.Now()) } |