package
0.0.0-20240720002214-37b2b8227b91
Repository: https://github.com/progrium/go-netstack.git
Documentation: pkg.go.dev

# Functions

AfterFunc waits for duration to elapse according to clock then runs fn.
FromNanoseconds returns a Time representing the point ns nanoseconds after an unspecified Clock's zero time.
FromSeconds returns a Time representing the point s seconds after an unspecified Clock's zero time.
FromTimespec converts from Linux Timespec to Time.
FromTimeval converts a Linux Timeval to Time.
FromUnix converts from Unix seconds and nanoseconds to Time, assuming a real time Unix clock domain.
ItimerspecFromSetting converts a Setting to a linux.Itimerspec.
NewChannelNotifier creates a new channel notifier.
NewTimer returns a new Timer that will obtain time from clock and send expirations to listener.
NowFromContext returns the current real time associated with context ctx.
RealtimeClockFromContext returns the real time clock associated with context ctx.
SettingFromAbsSpec converts a (value, interval) pair to a Setting.
SettingFromItimerspec converts a linux.Itimerspec to a Setting.
SettingFromSpec converts a (value, interval) pair to a Setting based on a reading from c.
SettingFromSpecAt converts a (value, interval) pair to a Setting.
SpecFromSetting converts a timestamp and a Setting to a (relative value, interval) pair, as used by most Linux syscalls that return a struct itimerval or struct itimerspec.

# Constants

ClockEventRateIncrease occurs when the rate at which a Clock advances increases significantly, such that values returned by previous calls to Clock.WallTimeUntil may be too large.
ClockEventSet occurs when a Clock undergoes a discontinuous change.
CtxRealtimeClock is a Context.Value key for the current real time.
MaxDuration is the maximum duration representable by time.Duration.
MinDuration is the minimum duration representable by time.Duration.

# Variables

MaxTime is the highest possible time that can be represented by Time.
MinTime is the zero time instant, the lowest possible time that can be represented by Time.
ZeroTime represents the zero time in an unspecified Clock's domain.

# Structs

ClockEventsQueue implements waiter.Waitable by wrapping waiter.Queue and defining waiter.Waitable.Readiness as required by Clock.
NoClockEvents implements waiter.Waitable for Clocks that do not generate events.
Setting contains user-controlled mutable Timer properties.
Time represents an instant in time with nanosecond precision.
Timer is an optionally-periodic timer driven by sampling a user-specified Clock.
VariableTimer is a resettable timer with variable duration expirations.
WallRateClock implements Clock.WallTimeUntil for Clocks that elapse at the same rate as wall time.

# Interfaces

A Clock is an abstract time source.
Listener receives expirations from a Timer.