function tictoc_resolution_test ( )

%*****************************************************************************80
%
%% tictoc_resolution_test() tests tictoc_resolution().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 May 2012
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'tictoc_resolution_test():\n' );
  fprintf ( 1, '  Estimate the resolution of the TIC/TOC functions by calling\n' );
  fprintf ( 1, '  N times and averaging.\n' );
  fprintf ( 1, '\n' );
  fprintf ( 1, '       N    Seconds/Tick     Ticks/Second\n' );
  fprintf ( 1, '\n' );

  n = 1;
  for log2 = 0 : 10
    s = tictoc_resolution ( n );
    t = 1.0 / s;
    fprintf ( 1, '  %6d  %10.4g  %12d\n', n, s, t );
    n = n * 2;
  end

  return
end
