MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / UnixCell

Method UnixCell

internal/utils/fasttime/time_fast.go:67–69  ·  view source on GitHub ↗

UnixCell 取整并加1

(seconds int)

Source from the content-addressed store, hash-verified

65
66// UnixCell 取整并加1
67func (this *FastTime) UnixCell(seconds int) int64 {
68 return this.unixTime/int64(seconds)*int64(seconds) + int64(seconds)
69}
70
71// UnixNextMinute 获取下一分钟开始的时间戳
72func (this *FastTime) UnixNextMinute() int64 {

Callers 2

UnixNextMinuteMethod · 0.95
TestFastTime_UnixFloorFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestFastTime_UnixFloorFunction · 0.64