MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / now

Method now

sqlchain/runtime.go:180–184  ·  view source on GitHub ↗

now returns the current coodinated chain time.

()

Source from the content-addressed store, hash-verified

178
179// now returns the current coodinated chain time.
180func (r *runtime) now() time.Time {
181 r.timeMutex.Lock()
182 defer r.timeMutex.Unlock()
183 return time.Now().Add(r.offset)
184}
185
186func (r *runtime) getChainTimeString() string {
187 diff := r.now().Sub(r.chainInitTime)

Callers 3

getChainTimeStringMethod · 0.95
nextTickMethod · 0.95
syncMethod · 0.45

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected