Documentation ¶
Index ¶
Constants ¶
View Source
const ( TIME_NEAR_SHIFT = 8 TIME_NEAR = (1 << TIME_NEAR_SHIFT) TIME_LEVEL_SHIFT = 6 TIME_LEVEL = (1 << TIME_LEVEL_SHIFT) TIME_NEAR_MASK = (TIME_NEAR - 1) TIME_LEVEL_MASK = (TIME_LEVEL - 1) TICK_INTERVAL = 10 * time.Millisecond )
Variables ¶
This section is empty.
Functions ¶
func RegisterTimer ¶
func RegisterTimer(id *int64, duration time.Duration, handle TimerHandle, opts ...OpOption)
func StoreTimerId ¶
Types ¶
type Timer ¶
type Timer struct {
// contains filtered or unexported fields
}
var (
TIMER *Timer
)
type TimerHandle ¶
type TimerHandle func()
Click to show internal directories.
Click to hide internal directories.