save
This commit is contained in:
parent
67ec492463
commit
596953cf8e
8
timer.go
8
timer.go
@ -19,11 +19,11 @@ type timer struct {
|
|||||||
func (this *timer) init() {
|
func (this *timer) init() {
|
||||||
this.base = new(q5.XTimer)
|
this.base = new(q5.XTimer)
|
||||||
this.base.Init(
|
this.base.Init(
|
||||||
func (context interface{}) int64 {
|
func(context interface{}) int64 {
|
||||||
return q5.GetTickCount()
|
return q5.GetTickCount()
|
||||||
},
|
},
|
||||||
nil,
|
nil,
|
||||||
1000 * 60,
|
1000*60,
|
||||||
5000)
|
5000)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -97,3 +97,7 @@ func (this *timer) Delete(timerWp *TimerWp) {
|
|||||||
func (this *timer) GetRemainTime(timerWp *TimerWp) int64 {
|
func (this *timer) GetRemainTime(timerWp *TimerWp) int64 {
|
||||||
return this.base.GetRemainTime(timerWp.XTimerWp)
|
return this.base.GetRemainTime(timerWp.XTimerWp)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (this *timer) DeleteRunningTimer() {
|
||||||
|
this.base.DeleteRunningTimer()
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user