Versions in this module Expand all Collapse all v0 v0.1.1 Nov 28, 2020 Changes in this version + type Ticker struct — darwin/amd64, js/wasm, linux/amd64 + Chan <-chan tick + func (t *Ticker) Stop() + type Timer struct + Chan <-chan alarm + func (t *Timer) Stop() v0.1.0 Nov 28, 2020 Changes in this version + func Alarm(dev string) (t time.Time, err error) + func CancelWakeAlarm(dev string) (err error) + func Clocks() (devices []string, err error) + func Epoch(dev string) (epoch uint, err error) + func Frequency(dev string) (frequency uint, err error) + func NewRTC(dev string) (*rtc, error) + func NewTicker(dev string, frequency uint) (*ticker, error) — darwin/amd64, js/wasm, linux/amd64 + func NewTimer(dev string, d time.Duration) (*timer, error) + func NewTimerAt(dev string, t time.Time) (*timer, error) + func SetAlarm(dev string, t time.Time) (err error) + func SetAlarmInterrupt(dev string, enable bool) (err error) + func SetEpoch(dev string, epoch uint) (err error) + func SetFrequency(dev string, frequency uint) (err error) + func SetPeriodicInterrupt(dev string, enable bool) (err error) + func SetTime(dev string, t time.Time) (err error) + func SetUpdateInterrupt(dev string, enable bool) (err error) + func SetWakeAlarm(dev string, t time.Time) (err error) + func Time(dev string) (t time.Time, err error) + func WakeAlarm(dev string) (enabled bool, pending bool, t time.Time, err error)