home *** CD-ROM | disk | FTP | other *** search
-
- _C_P_U _t_i_m_e _u_s_e_d
-
- unix.time(expr)
-
- _A_r_g_u_m_e_n_t_s:
-
- expr : Valid R expression to be ``timed''
-
- _D_e_s_c_r_i_p_t_i_o_n:
-
- unix.time calls the builtin proc.time, evaluates expr,
- and the calls proc.time once more, returning the
- difference to between the proc.time calls.
-
- The values returned by the proc.time are (currently)
- those returned by the C library function times(3v).
-
- _V_a_l_u_e:
-
- A numeric vector of length 5 containing the cpu, user,
- total, subproc1, subproc2 times.
-
- _S_e_e _A_l_s_o:
-
- proc.time, date, time which is for time-series.
-
- _E_x_a_m_p_l_e_s:
-
- unix.time(for(i in 1:50) mad(runif(500)))
- exT <- function(n = 100)
- {
- ## Purpose: Test if unix.time works ok; n: loop size
- unix.time(for(i in 1:n) x <- mean(rt(1000, df=4)))
- }
- ##-- Try to interrupt one of the following (using Ctrl-C):
- exT() #- '1.4' on -O-optimized Ultra1
- unix.time(exT()) #~ +/- same
-
-