mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-17 09:54:45 +08:00
优化时间轮tick时间间隔
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user