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

Method Unix

internal/utils/fasttime/time_fast.go:57–59  ·  view source on GitHub ↗

Unix 最快获取时间戳的方式,通常用在不需要特别精确时间戳的场景

()

Source from the content-addressed store, hash-verified

55
56// Unix 最快获取时间戳的方式,通常用在不需要特别精确时间戳的场景
57func (this *FastTime) Unix() int64 {
58 return this.unixTime
59}
60
61// UnixFloor 取整
62func (this *FastTime) UnixFloor(seconds int) int64 {

Callers 15

PrintlnFunction · 0.80
WarnFunction · 0.80
WarnServerFunction · 0.80
ErrorFunction · 0.80
ErrorServerFunction · 0.80
ServerErrorFunction · 0.80
ServerSuccessFunction · 0.80
ServerLogFunction · 0.80
TestGMTUnixTimeFunction · 0.80
TestList_AddFunction · 0.80
TestList_Add_OverwriteFunction · 0.80
TestList_RemoveFunction · 0.80

Calls

no outgoing calls

Tested by 15

TestGMTUnixTimeFunction · 0.64
TestList_AddFunction · 0.64
TestList_Add_OverwriteFunction · 0.64
TestList_RemoveFunction · 0.64
TestList_GCFunction · 0.64
TestList_GC_BatchFunction · 0.64
TestList_Start_GCFunction · 0.64
TestList_ManyItemsFunction · 0.64
TestList_MemoryFunction · 0.64
TestList_Map_PerformanceFunction · 0.64
BenchmarkList_AddFunction · 0.64
Benchmark_Map_Uint64Function · 0.64