timer

package
v0.0.0-...-372ebbf Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const TIMERSLOTSCOUNT = 256
View Source
const TIMERWHEELCOUNT = 5

Variables

This section is empty.

Functions

func UnixTS

func UnixTS() uint64

Types

type TimerHandler

type TimerHandler func(args []interface{})

type TimerManager

type TimerManager struct {
	// contains filtered or unexported fields
}

func NewTimerManager

func NewTimerManager() *TimerManager

func (*TimerManager) AddTimer

func (this *TimerManager) AddTimer(delay uint64, op TimerHandler, args ...interface{}) uint64

func (*TimerManager) DeleteTimer

func (this *TimerManager) DeleteTimer(timerID uint64) bool

func (*TimerManager) Execute

func (this *TimerManager) Execute(count uint32) int

func (*TimerManager) GetSeqID

func (this *TimerManager) GetSeqID() uint32

Jump to

Keyboard shortcuts

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