//
pkg.gl
Category
github.com/ethereum/go-ethereum
common
mclock
package
1.15.2
Repository:
https://github.com/ethereum/go-ethereum.git
Documentation:
pkg.go.dev
Versions
1
Dependencies
4
Dependents
1.9k
Files
293 SLOC
#
Functions
NewAlarm
NewAlarm creates an Alarm.
Now
Now returns the current absolute monotonic time.
#
Structs
Alarm
Alarm sends timed notifications on a channel.
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.