Documentation ¶
Overview ¶
Package time contains tools for time manipulation.
Index ¶
- func AcquireTimer(d time.Duration) *time.Timer
- func ReleaseTimer(tm *time.Timer)
- type MonotonicTimestamp
- func (m MonotonicTimestamp) Add(d time.Duration) MonotonicTimestamp
- func (m MonotonicTimestamp) After(u MonotonicTimestamp) bool
- func (m MonotonicTimestamp) Before(u MonotonicTimestamp) bool
- func (m MonotonicTimestamp) Equal(u MonotonicTimestamp) bool
- func (m MonotonicTimestamp) Sub(u MonotonicTimestamp) time.Duration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseTimer ¶
Types ¶
type MonotonicTimestamp ¶
type MonotonicTimestamp timestamp
func Monotonic ¶
func Monotonic() (ret MonotonicTimestamp, err error)
func (MonotonicTimestamp) Add ¶
func (m MonotonicTimestamp) Add(d time.Duration) MonotonicTimestamp
func (MonotonicTimestamp) After ¶
func (m MonotonicTimestamp) After(u MonotonicTimestamp) bool
func (MonotonicTimestamp) Before ¶
func (m MonotonicTimestamp) Before(u MonotonicTimestamp) bool
func (MonotonicTimestamp) Equal ¶
func (m MonotonicTimestamp) Equal(u MonotonicTimestamp) bool
func (MonotonicTimestamp) Sub ¶
func (m MonotonicTimestamp) Sub(u MonotonicTimestamp) time.Duration
Click to show internal directories.
Click to hide internal directories.