优化时间轮tick时间间隔

This commit is contained in:
boyce
2020-10-25 00:12:47 +08:00
parent df95664b16
commit b40bd7e709

View File

@@ -35,7 +35,7 @@ func init(){
//定时器运行与驱动 //定时器运行与驱动
func timerRunning(){ func timerRunning(){
t := time.NewTicker(time.Microsecond*5) t := time.NewTicker(time.Millisecond*10)
for { for {
/* if test == true { /* if test == true {
testTimerRunning() testTimerRunning()