MCPcopy
hub / github.com/aceld/zinx / UnixMilli

Function UnixMilli

ztimer/timer.go:57–59  ·  view source on GitHub ↗

UnixMilli 返回1970-1-1至今经历的毫秒数

()

Source from the content-addressed store, hash-verified

55
56// UnixMilli 返回1970-1-1至今经历的毫秒数
57func UnixMilli() int64 {
58 return time.Now().UnixNano() / 1e6
59}
60
61// NewTimerAt 创建一个定时器,在指定的时间触发 定时器方法 df: DelayFunc类型的延迟调用函数类型;unixNano: unix计算机从1970-1-1至今经历的纳秒数
62func NewTimerAt(df *DelayFunc, unixNano int64) *Timer {

Callers 4

RunMethod · 0.85
addTimerMethod · 0.85
GetTimerWithInMethod · 0.85
StartMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected