User Tools

Site Tools


cdc:nos2.source:nam5871:ns_sgt

NS$SGT

Table Of Contents

  • [00005] PROC NS$SGT
  • [00007] NS$SGT - START ACTIVITY TIMER.
  • [00011] START ACTIVITY TIMER.
  • [00033] PROC RTIME

Source Code

NS$SGT.txt
  1. *DECK NS$SGT
  2. USETEXT NAT$NS
  3. USETEXT DEF$NS
  4.  
  5. PROC NS$SGT; # START ACTIVITY TIMER #
  6.  
  7. # TITLE NS$SGT - START ACTIVITY TIMER. #
  8.  
  9. BEGIN # NS$SGT #
  10. #
  11. ** NS$SGT - START ACTIVITY TIMER.
  12. *
  13. * J.C. LEE 1981
  14. *
  15. * THIS ROUTINE STARTS THE ACTIVITY TIMER.
  16. *
  17. * PROC NS$SGT
  18. *
  19. * ENTRY:
  20. * NONE.
  21. *
  22. * EXIT:
  23. * NONE.
  24. *
  25. * METHOD:
  26. * GET REAL TIME CLOCK.
  27. * START ACTIVITY TIMER.
  28. *
  29. #
  30.  
  31. XREF
  32. BEGIN
  33. PROC RTIME; # GET REAL TIME CLOCK #
  34. END
  35.  
  36. ARRAY STAT [0:0] S(1);
  37. BEGIN # PARAMETER WORD FOR RTIME CALL #
  38. ITEM STATWORD U(00,00,60); # REAL TIME CLOCK READING #
  39. ITEM RSECS U(00,00,24); # SECONDS SINCE DEADSTART #
  40. ITEM RMSECS U(00,24,36); # MILLISECONDS SINCE DEADSTART #
  41. END
  42.  
  43. CONTROL EJECT;
  44. RTIME(STAT); # GET REAL TIME CLOCK #
  45. NAT$GTIMER[0] = RSECS[0] + ATIMER; # START ACTIVITY TIMER #
  46.  
  47. RETURN;
  48. END # NS$SGT #
  49. TERM
cdc/nos2.source/nam5871/ns_sgt.txt ยท Last modified: 2023/08/05 17:22 by Site Administrator