fox/timer/interface.go

17 lines
253 B
Go
Raw Normal View History

2025-06-06 20:03:46 +08:00
package timer
import (
"time"
)
type ITimer interface {
NewTimer(duration time.Duration, cb func(), needLog bool, desc ...string) uint32
CancelTimer(timerId uint32)
CancelAllTimer()
}
2025-06-09 19:11:27 +08:00
type ITimeType interface {
Number() int32
String() string
}