*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->HP-UX 11i man pages -> timex (1)              
Title
Content
Arch
Section
 

Contents


 timex(1)                                                           timex(1)




 NAME    [Toc]    [Back]
      timex - time a command; report process data and system activity

 SYNOPSIS    [Toc]    [Back]
      timex [-o] [-p[fhkmrt]] [-s] command

 DESCRIPTION    [Toc]    [Back]
      timex reports in seconds the elapsed time, user time, and system time
      spent in execution of the given command.  Optionally, process
      accounting data for command and all its children can be listed or
      summarized, and total system activity during the execution interval
      can be reported.

      The output of timex is written on the standard error. Timex returns an
      exit status of 1 if it is used incorrectly, if it is unable to fork,
      or if it could not exec command . Otherwise, timex returns the exit
      status of command.

    Options    [Toc]    [Back]
           -o             Report the total number of blocks read or written
                          and total characters transferred by command and
                          all its children. This option works only if the
                          process accounting software is installed.

           -p[fhkmrt]     List process accounting records for command and
                          all its children.  The suboptions f, h, k, m, r,
                          and t modify the data items reported.  They behave
                          as defined in acctcom(1M).  The number of blocks
                          read or written and the number of characters
                          transferred are always reported.

                          This option works only if the process accounting
                          software is installed and /usr/lib/acct/turnacct
                          has been invoked to create /var/adm/pacct.

           -s             Report total system activity (not just that due to
                          command) that occurred during the execution
                          interval of command.  All the data items listed in
                          sar(1M) are reported.

 EXAMPLES    [Toc]    [Back]
      A simple example:

           timex -ops sleep 60

      A terminal session of arbitrary complexity can be measured by timing a
      sub-shell:

           timex -opskmt sh
                session commands
           EOT



 Hewlett-Packard Company            - 1 -   HP-UX 11i Version 2: August 2003






 timex(1)                                                           timex(1)




 WARNINGS    [Toc]    [Back]
      Process records associated with command are selected from the
      accounting file /var/adm/pacct by inference, since process genealogy
      is not available.  Background processes having the same user-ID,
      terminal-ID, and execution time window are spuriously included.

 SEE ALSO    [Toc]    [Back]
      sar(1M), acctcom(1M).

 STANDARDS CONFORMANCE    [Toc]    [Back]
      timex: SVID2, SVID3


 Hewlett-Packard Company            - 2 -   HP-UX 11i Version 2: August 2003
[ Back ]
      
      
 Similar pages
Name OS Title
sa2 HP-UX system activity report package
sa1 HP-UX system activity report package
sadc HP-UX system activity report package
padc IRIX process activity data collector
par IRIX process activity reporter / truss-like system call tracer
osview IRIX monitor operating system activity data
ecstats IRIX report global event counter activity
par IRIX process activity reporting device
scsiquiesce IRIX stop all SCSI bus activity for a specific amount of time
dxsysinfo Tru64 Monitors system information such as CPU activity, memory, swap space, and file system usage
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service