timer

package
v0.0.0-...-1bf782c Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ITimer

type ITimer interface {
	Start(sender interface{})
	Stop() bool
	SetInterval(milSecond int64)
	GetElapsedEvent() *events.EventParams[interface{}]
	// contains filtered or unexported methods
}

func NewTimeOnce

func NewTimeOnce() ITimer

func NewTimerTick

func NewTimerTick() ITimer

type TimeOnce

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

func (*TimeOnce) GetElapsedEvent

func (_this *TimeOnce) GetElapsedEvent() *events.EventParams[interface{}]

func (*TimeOnce) SetInterval

func (_this *TimeOnce) SetInterval(milSecond int64)

func (*TimeOnce) Start

func (_this *TimeOnce) Start(sender interface{})

func (*TimeOnce) Stop

func (_this *TimeOnce) Stop() bool

type TimerTick

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

func (*TimerTick) GetElapsedEvent

func (_this *TimerTick) GetElapsedEvent() *events.EventParams[interface{}]

func (*TimerTick) SetInterval

func (_this *TimerTick) SetInterval(milSecond int64)

func (*TimerTick) Start

func (_this *TimerTick) Start(sender interface{})

func (*TimerTick) Stop

func (_this *TimerTick) Stop() bool

Jump to

Keyboard shortcuts

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