function s = tictoc_resolution ( n )

%*****************************************************************************80
%
%% tictoc_resolution() estimates the tic/toc resolution.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    20 May 2012
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer N, the number of trials.
%
%  Output:
%
%    real S, the average number of seconds required to call tic and then toc.
%
  s = 0.0;

  for i = 1 : n

    tic;
    t = toc;

    s = s + t;

  end

  s = s / n;

  return
end
