function timer_test ( )

%*****************************************************************************80
%
%% timer_test tests MATLAB timing functions.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license.
%
%  Modified:
%
%    19 February 2019
%
%  Author:
%
%    John Burkardt
%
  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 'timer_test\n' );
  fprintf ( 1, '  MATLAB version\n' );
  fprintf ( 1, '  Test MATLAB timing functions.\n' );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Demonstrate the CPUTIME timer.\n' );
  fprintf ( 1, '\n' );
  
  timer_cputime_test01 ( );
  timer_cputime_test02 ( );
  timer_cputime_test03 ( );
  timer_cputime_test04 ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Demonstrate CLOCK and ETIME.\n' );
  fprintf ( 1, '\n' );

  timer_etime_test01 ( );
  timer_etime_test02 ( );
  timer_etime_test03 ( );
  timer_etime_test04 ( );

  fprintf ( 1, '\n' );
  fprintf ( 1, '  Demonstrate TIC and TOC.\n' );
  fprintf ( 1, '\n' );

  timer_tictoc_test01 ( );
  timer_tictoc_test02 ( );
  timer_tictoc_test03 ( );
  timer_tictoc_test04 ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'timer_test\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  return
end
