Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ clock(S) — Xenix 2.3.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

machine(HW)

system(S)

times(S)

wait(S)



     CLOCK(S)                 XENIX System V                  CLOCK(S)



     Name
          clock - Reports CPU time used.

     Syntax
          long clock ( )

     Description
          clock returns the amount of CPU time (in microseconds) used
          since the first call to clock.  The reported time equals the
          sum of user and system times of the calling process and any
          terminated child processes for which wait or system(S) were
          executed.

          The resolution of the clock is machine dependent.  Refer to
          the manual page machine(HW) for the clock resolution on your
          system.

     See Also
          machine(HW), system(S), times(S), wait(S)

     Notes
          The microsecond value returned by clock is compatible with
          systems that have CPU clocks with much higher resolution.
          Because of this, the value returned will wrap around after
          accumulating only 2147 seconds of CPU time (about 36
          minutes).





























     Page 1                                           (printed 8/7/87)



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026