//
pkg.gl
Category
github.com/codecodeorg/opgeth
common
mclock
package
0.0.0-20240810090356-c5cebdb4e16e
Repository:
https://github.com/codecodeorg/opgeth.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
14
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.