[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

time macro



Hello,

  The time macro returns user and system time for gc and non-gc and
the total time.  It also returns the real time.

Sample output (from the man page) looks like:

    ;;  The output from TIME looks like this in one implementation:

    (defun doit (n) (time (dotimes (i n) (cons nil nil)))) => doit
    (compile 'doit) => doit
    (doit 100000) => nil
      PRINTS  ; to *TRACE-OUTPUT*
    cpu time (non-gc) 834 msec user, 16 msec system
    cpu time (gc)     216 msec user, 0 msec system
    cpu time (total)  1050 msec user, 16 msec system
    real time  1120 msec

Can someone please define user, system and real times.

Thanks, Chuck

 ----------------------------------------------------------------------------
| Charles P. Lombardo			|           lombardo@cs.nps.navy.mil |
| Computer Science Department		|		 voice: 408-646-2102 |
| Naval Postgraduate School		|		 fax:   408-646-2814 |
 ----------------------------------------------------------------------------