NewMemClockWithTime create a new clock with a value.
(time uint64)
| 58 | |
| 59 | // NewMemClockWithTime create a new clock with a value. |
| 60 | func 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 |
| 67 | func (mc *MemClock) Time() Time { |