anchor.diff:                  end
           end, Cases).
   
  -set_maxdrift_test() ->
  +set_maxoffset_test() ->
  +    error_logger:tty(false),
       {_MClock, MClockFun} = hlc:manual_clock(123456789),
       SkewedTime = 123456789 + 51,
       {ok, C} = hlc:new(MClockFun),
   
  -    ?assert(hlc:get_maxdrift(C) =:= 0),
  -    hlc:set_maxdrift(C, 50),
  -    ?assert(hlc:get_maxdrift(C) =:= 50),
  +    ?assert(hlc:get_maxoffset(C) =:= 0),
  +    hlc:set_maxoffset(C, 50),
  +    ?assert(hlc:get_maxoffset(C) =:= 50),
   
       hlc:now(C),
       TS = hlc:timestamp(C),
  
positive.code: %% @doc takes a hybrid timestamp, usually originating from an event
  %% received from another member of a distributed system. The clock is
  %% updated and the hybrid timestamp  associated to the receipt of the
  %% event returned.  An error may only occur if drift checking is active
  %% and  the remote timestamp was rejected due to clock drift,  in which
  %% case the state of the clock will not have been  altered. To timestamp
  %% events of local origin, use Now instead.
  -spec update(pid(), timestamp()) ->
  
negative.code: 
      ?assertMatch({error, _}, hlc:update(C, ?ts(SkewedTime, 0))),
  
      hlc:set_maxoffset(C, 0),
      ?assertMatch(#timestamp{wall_time=SkewedTime},
                   hlc:update(C, ?ts(SkewedTime, 0))).
  
  