MCPcopy Create free account
hub / github.com/git-bug/git-bug / NewMemClockWithTime

Function NewMemClockWithTime

util/lamport/mem_clock.go:60–64  ·  view source on GitHub ↗

NewMemClockWithTime create a new clock with a value.

(time uint64)

Source from the content-addressed store, hash-verified

58
59// NewMemClockWithTime create a new clock with a value.
60func NewMemClockWithTime(time uint64) *MemClock {
61 return &MemClock{
62 counter: time,
63 }
64}
65
66// Time is used to return the current value of the lamport clock
67func (mc *MemClock) Time() Time {

Callers 1

readMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected