Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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 最快获取时间戳的方式,通常用在不需要特别精确时间戳的场景
57
func
(this *FastTime) Unix() int64 {
58
return
this.unixTime
59
}
60
61
// UnixFloor 取整
62
func
(this *FastTime) UnixFloor(seconds int) int64 {
Callers
15
Println
Function · 0.80
Warn
Function · 0.80
WarnServer
Function · 0.80
Error
Function · 0.80
ErrorServer
Function · 0.80
ServerError
Function · 0.80
ServerSuccess
Function · 0.80
ServerLog
Function · 0.80
TestGMTUnixTime
Function · 0.80
TestList_Add
Function · 0.80
TestList_Add_Overwrite
Function · 0.80
TestList_Remove
Function · 0.80
Calls
no outgoing calls
Tested by
15
TestGMTUnixTime
Function · 0.64
TestList_Add
Function · 0.64
TestList_Add_Overwrite
Function · 0.64
TestList_Remove
Function · 0.64
TestList_GC
Function · 0.64
TestList_GC_Batch
Function · 0.64
TestList_Start_GC
Function · 0.64
TestList_ManyItems
Function · 0.64
TestList_Memory
Function · 0.64
TestList_Map_Performance
Function · 0.64
BenchmarkList_Add
Function · 0.64
Benchmark_Map_Uint64
Function · 0.64