timer

package
v0.0.0-...-d66ce5c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(name string, n Notifier) error

func GetSysUpTime

func GetSysUpTime() int64

获取系统启动时间

func GetUpTime

func GetUpTime() int64

获取系统运行时间

func UpSysUpTime

func UpSysUpTime() int64

更新系统启动时间 如果启动时间有变动则说明系统修改过时间

Types

type Notifier

type Notifier interface {
	Notify(time time.Time) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL