Time                  package:time                  R Documentation

_T_i_m_e _T_r_a_c_k_i_n_g _F_u_n_c_t_i_o_n_s

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

     'getTime' turns the output of 'date' into an '"integer"' vector of
     length 3, 'timeElapsed' determines the difference between two such
     times, and 'timeChar' reports a time in a nice way. 'timeReport'
     is a macro for the latter two.

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

     old <- getTime()
     timeElapsed( old, new = getTime() )
     timeChar( time = getTime() )
     timeReport(time)

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

     old: "integer" vector of length 3 that specifies hours, minutes,
          and seconds, respectively.

     new: "integer" vector of length 3 that specifies hours, minutes,
          and seconds, respectively.

    time: "integer" vector of length 3 that specifies hours, minutes,
          and seconds, respectively.

_V_a_l_u_e:

     "integer" vector of length 3 that specifies hours, minutes, and
     seconds, respectively.

_N_o_t_e:

     It is usually nice to provide the user a 'verbose' option that he
     may choose to set to 'FALSE' if no output from time tracking
     functions is desired. Also, a known bug is that 'timeElapsed'
     considers 24 to be the maximal number of hours in the day, and
     thus if it is called after midnight for a calculation started the
     day before, an incorrect difference will be calculated.

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

     Toby Dylan Hocking <tobob@berkeley.edu>

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

     time <- getTime()
     #TimeConsumingAnalysisTask
     timeReport(time)

