function brc_naive_test ( )

%*****************************************************************************80
%
%% brc_naive_test() tests brc_naive().
%
%  Licensing:
%
%    This code is distributed under the MIT license. 
%
%  Modified:
%
%    20 October 2024
%
%  Author:
%
%    Original C version by Danny van Kooten.
%    This version by John Burkardt.
%
  addpath ( '../brc_naive' );

  timestamp ( );
  fprintf ( 1, "\n" );
  fprintf ( 1, "brc_naive_test():\n" );
  fprintf ( 1, "  MATLAB/Octave version %s\n", version ( ) );
  fprintf ( 1, "  Carry out the Billion Record Challenge (BRC).\n" );

  filename = 'brc_obs.csv';

  tstart = tic ( );
  brc_naive ( filename );
  tstop = toc ( tstart );

  fprintf ( 1, "  Run time was %f seconds.\n", tstop );
%
%  Terminate.
%
  fprintf ( 1, "\n" );
  fprintf ( 1, "brc_naive_test():\n" );
  fprintf ( 1, "  Normal end of execution.\n" );
  timestamp ( );

  rmpath ( '../brc_naive' );

  return
end
function timestamp ( )

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

  return
end
