MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetTime

Method GetTime

p2pserver/net/netserver/netserver.go:154–157  ·  view source on GitHub ↗

GetTime return the last contact time of self peer

()

Source from the content-addressed store, hash-verified

152
153//GetTime return the last contact time of self peer
154func (this *NetServer) GetTime() int64 {
155 t := time.Now()
156 return t.UnixNano()
157}
158
159//GetServices return the service state of self peer
160func (this *NetServer) GetServices() uint64 {

Callers 1

TestNewNetServerFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestNewNetServerFunction · 0.76