anchor.diff:           code_change/3]).
   
   -record(state, {
  -    offset = 0 :: integer()
   }).
   
   %%%===================================================================
  
positive.code: -spec timestamp() -> {non_neg_integer(), non_neg_integer(), non_neg_integer()}.
  timestamp() ->
      {MegaSecs, Secs, MicroSecs} = os:timestamp(),
      {MegaSecs, Secs, MicroSecs + get_offset()}.
  
  -spec get_offset() -> integer().
  get_offset() ->
      {ok, Offset} = gen_server:call(?MODULE, get_offset),
      Offset.
  
  -spec synchronize_time_with_director(string()) -> ok.
  synchronize_time_with_director(DirectorNode) ->
  
negative.code: %%%===================================================================
  -spec init([]) -> {ok, #state{}}.
  init([]) ->
      _ = ets:new(?MODULE, [set, named_table, {read_concurrency, true}]),
      ets:insert(?MODULE, {offset, 0}),
      {ok, #state{}}.
  
  -spec handle_call(term(), {pid(), term()}, #state{}) -> term().
  handle_call(Req, _From, State) ->
      system_log:error("Unhandled call: ~p", [Req]),
      {stop, {unhandled_call, Req}, State}.
  