function counter_test ( )

%*****************************************************************************80
%
%% counter_test() tests counter().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    12 May 2021
%
%  Author:
%
%    John Burkardt
%
  addpath ( '../persistence' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'counter_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  Test counter(), with the interface:\n' );
  fprintf ( 1, '    counter()\n' );
  fprintf ( 1, '\n' );

  for i = 1 : 10
    counter ( );
  end
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'counter_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../persistence' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

