tictoc                package:matlab                R Documentation

_M_A_T_L_A_B _t_i_m_e_r _f_u_n_c_t_i_o_n_s

_D_e_s_c_r_i_p_t_i_o_n:

     Provides stopwatch timer. Function 'tic' starts the timer and
     'toc' displays the elapsed time since the timer was started.

_U_s_a_g_e:

     tic(gcFirst = FALSE)
     toc()

_A_r_g_u_m_e_n_t_s:

 gcFirst: logical. If 'TRUE', perform garbage collection prior to
          starting stopwatch

_D_e_t_a_i_l_s:

     Provides analog to 'base::system.time'. Function 'toc' can be
     invoked multiple times in a row.

_A_u_t_h_o_r(_s):

     P. Roebuck, roebuck@mdanderson.org

_E_x_a_m_p_l_e_s:

     tic()
     for(i in 1:100) mad(runif(1000))        # kill time
     toc()

