//
pkg.gl
Category
github.com/classzz/go-classzz-v2
common
mclock
package
1.2.2
Repository:
https://github.com/classzz/go-classzz-v2.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
18
Files
225 SLOC
#
Functions
Now
Now returns the current absolute monotonic time.
#
Structs
Simulated
Simulated implements a virtual Clock for reproducible time-sensitive tests.
System
System implements Clock using the system clock.
#
Interfaces
ChanTimer
ChanTimer is a cancellable event created by NewTimer.
Clock
The Clock interface makes it possible to replace the monotonic system clock with a simulated clock.
Timer
Timer is a cancellable event created by AfterFunc.
#
Type aliases
AbsTime
AbsTime represents absolute monotonic time.