
rusage(3)             LPC Library Functions             rusage(3)

NNAAMMEE
       rusage() - reports information gathered by the getrusage()
       system call

SSYYNNOOPPSSIISS
       mapping rusage( void );

DDEESSCCRRIIPPTTIIOONN
       This  efun   collects   information   gathered   via   the
       getrusage()  system  call.   Read the getrusage() man page
       for more information on  what  information  will  be  col       lected.   Some  systems do not have the getrusage() system
       call but do have the times() system call.  On  those  sys       tems,  only  "utime" and "stime" will be available.  Times
       are reported in milliseconds.

       Here is an example usage of rusage():

         void
         create()
         {
             mapping info;

             info = rusage();
             write("user time = " + info["utime"] + "ms\n");
             write("system time = " + info["stime"] + "ms\n");
         }

       The available fields are:

              utime, stime, maxrss, ixrss, idrss, isrss,  minflt,
              majflt,  nswap,  inblock,  oublock, msgsnd, msgrcv,
              nsignals, nvcsw, nivcsw.

SSEEEE AALLSSOO
       time_expression(3),     function_profile(3),      time(3),
       uptime(3)

Majik                      26 Jul 1997                          1

