mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-21 04:04:43 +08:00
定时器更新
This commit is contained in:
@@ -13,6 +13,10 @@ func (slf *Timer) SetupTimer(ms int32) {
|
|||||||
slf.timeinterval = int64(ms) * 1e6
|
slf.timeinterval = int64(ms) * 1e6
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (slf *Timer) SetupTimerOnlyInterval(ms int32) {
|
||||||
|
slf.timeinterval = int64(ms) * 1e6
|
||||||
|
}
|
||||||
|
|
||||||
func (slf *Timer) SetupTimerTheHour(ms int32) {
|
func (slf *Timer) SetupTimerTheHour(ms int32) {
|
||||||
timeNow := time.Now()
|
timeNow := time.Now()
|
||||||
nt := timeNow.Truncate(time.Hour * 1)
|
nt := timeNow.Truncate(time.Hour * 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user