mirror of
https://github.com/xtaci/kcp-go.git
synced 2024-04-21 12:32:15 +00:00
Merge pull request #99 from jinq0123/fix/iclock
Let iclock() return currentMs()
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func iclock() int32 {
|
||||
return int32((time.Now().UnixNano() / 1000000) & 0xffffffff)
|
||||
return int32(currentMs())
|
||||
}
|
||||
|
||||
type DelayPacket struct {
|
||||
|
||||
Reference in New Issue
Block a user