


2 CONTROLT
!
CONTROLT is a  routine  which  simulates  the  DEC-10  Control-T
feature.   This feature allows the user to interrupt his running
program at any time and print out how much time has elapsed, how
much  CPU  time  has  been used, and how much I/O has been done.
The  mechanism  is  activated  every  time  the  Control-C   key
combintion is struck.  When you press Control-C, the information
is printed on the terminal immediatly.  The running  program  is
not affected by this activity.  However, the CONTROLT feature is
not available unless a program makes an  explicit  call  to  the
CONTROLT subroutine.  Almost all of the HMC library programs and
those programs  on  the  TOOLS:   directory  have  this  feature
installed.
3 Author
CONTROLT was written by Mark Anderson.  It is currently supplied
and  supported by the OMNIGRAPH project.  Any questions about or
problems with CONTROLT should be reported via MAIL to OMNIGRAPH.
3 Calling
All that a program need do to activate the mechanism is to  make
the call:

        CALL CONTROLT

at the beginning of the program.  No arguments are necessary and
CONTROLT  may  be  called  from any of the languages on the VAX.
After the call, any time Control-C is struck, the elapsed  time,
CPU  time  used,  and  I/O  operations  done  will  be  printed.
Control-C may be used as often as the user  wishes.   Note  that
Control-C  during  graphics output may disturb the picture being
drawn.
3 Location
The source to CONTROLT is the file:

        DEV:[OMNIGRAPH.UTILITY]CONTROLT.FOR

CONTROLT is in the object library POWELL.  All that needs to  be
done is to request this library at link time.  This would appear
as:

        $ LINK PROG,TOOLS:POWELL/LIB

The CONTROLT routine will then be loaded into your program.
