Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PROC1_$GET_CPUT                   Domain/OS                    PROC1_$GET_CPUT


NAME
     proc1_$get_cput - get elapsed CPU time

SYNOPSIS (C)
     #include <apollo/base.h>
     #include <apollo/proc1.h>

     void proc1_$get_cput(
          time_$clock_t *clock_value)

SYNOPSIS (Pascal)
     %include '/sys/ins/base.ins.pas';
     %include '/sys/ins/proc1.ins.pas';

     procedure proc1_$get_cput(
          out clock_value: time_$clock_t);

SYNOPSIS (FORTRAN)
     %include '/sys/ins/base.ins.ftn'
     %include '/sys/ins/proc1.ins.ftn'

           integer*2 clock_value(3), clockh
           integer*4 clockl

           equivalence (clockh, clock_value(1)), (clockl, clock_value(2))

           call proc1_$get_cput(clock_value)

DESCRIPTION
     Proc1_$get_cput supplies the elapsed CPU time for the calling process in
     clock_value.

     clock_value
          The amount of CPU time used by the calling process since its crea-
          tion.  Clock_value is a 48-bit integer counter of the number of 4-
          microsecond system clock periods that have elapsed while the calling
          process was running in the CPU.  It includes time spent by the
          operating system in servicing the process, but not time the process
          spent waiting for I/O or suspended.

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