Observe ensures that the time past t by at least. Must be called when
receiving a message from a remote machine to roughly synchronize
clocks between processes.
type Clock struct {
// contains filtered or unexported fields
}
Clock implements a lamport clock. The current time can be retrieved by
calling Now. The Clock must be manually incremented either by calling Tick
or Observe.
Observe ensures that c's time is past t. Observe must be called when
receiving a message from a remote machine that contains a Time, and is used
to roughly synchronize clocks between machines.