processor-time.sl 492 B

1234567891011121314151617
  1. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  2. %
  3. % Processor-Time.SL (TOPS-20 Version)
  4. %
  5. % Author: Alan Snyder
  6. % Hewlett-Packard/CRC
  7. % Date: 22 September 1982
  8. %
  9. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  10. (CompileTime (put 'hptim 'OpenCode '((jsys 8#501) (jfcl))))
  11. (de processor-time ()
  12. % Return accumulated processor time for the current process in microseconds.
  13. (WTimes2 (hptim 1) 10)
  14. )