timer

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 17, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// from /usr/include/linux/time.h
	CLOCK_MONOTONIC = 1
)

Variables

This section is empty.

Functions

func Now

func Now() int64

TODO(sgotti) for the moment just use a syscall so it'll work on all linux architectures. It's slower than using a vdso but we don't have such performance needs. Let's wait for a stdlib native monotonic clock.

func Since

func Since(start int64) time.Duration

Since return the duration since the starting time

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL