fox/timer/interface.go
2025-06-09 19:11:27 +08:00

17 lines
253 B
Go

package timer
import (
"time"
)
type ITimer interface {
NewTimer(duration time.Duration, cb func(), needLog bool, desc ...string) uint32
CancelTimer(timerId uint32)
CancelAllTimer()
}
type ITimeType interface {
Number() int32
String() string
}