monotime

package module
v0.0.0-...-e3f48a9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2018 License: Apache-2.0 Imports: 1 Imported by: 16

README

monotime Build Status

Please see http://godoc.org/github.com/spacemonkeygo/monotime for info

License

Copyright (C) 2014 Space Monkey, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Documentation

Overview

Package monotime provides a monotonic timer for Go 1.2 Go 1.3 will support monotonic time on its own.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Monotonic

func Monotonic() time.Duration

Monotonic returns a time duration from some fixed point in the past.

func Now

func Now() time.Time

Now returns something close to time.Now(), but is monotonically increasing. Use SetTime to change the clock that Now() is based off of.

func SetTime

func SetTime(t time.Time)

SetTime sets the current time, used by Now() for stable offset generation. SetTime is not threadsafe, and should be run during process start only.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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